Skip to content

Commit 7e19a6f

Browse files
committed
[Tests] up to node v7.9, v6.10, v4.8; improve matrix
1 parent 0191e27 commit 7e19a6f

File tree

2 files changed

+128
-45
lines changed

2 files changed

+128
-45
lines changed

.travis.yml

Lines changed: 125 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,179 @@
11
language: node_js
2+
os:
3+
- linux
24
node_js:
3-
- "6.3"
4-
- "6.2"
5-
- "6.1"
6-
- "6.0"
5+
- "7.9"
6+
- "6.10"
77
- "5.12"
8-
- "5.11"
9-
- "5.10"
10-
- "5.9"
11-
- "5.8"
12-
- "5.7"
13-
- "5.6"
14-
- "5.5"
15-
- "5.4"
16-
- "5.3"
17-
- "5.2"
18-
- "5.1"
19-
- "5.0"
20-
- "4.4"
21-
- "4.3"
22-
- "4.2"
23-
- "4.1"
24-
- "4.0"
8+
- "4.8"
259
- "iojs-v3.3"
26-
- "iojs-v3.2"
27-
- "iojs-v3.1"
28-
- "iojs-v3.0"
2910
- "iojs-v2.5"
30-
- "iojs-v2.4"
31-
- "iojs-v2.3"
32-
- "iojs-v2.2"
33-
- "iojs-v2.1"
34-
- "iojs-v2.0"
3511
- "iojs-v1.8"
36-
- "iojs-v1.7"
37-
- "iojs-v1.6"
38-
- "iojs-v1.5"
39-
- "iojs-v1.4"
40-
- "iojs-v1.3"
41-
- "iojs-v1.2"
42-
- "iojs-v1.1"
43-
- "iojs-v1.0"
4412
- "0.12"
45-
- "0.11"
4613
- "0.10"
47-
- "0.9"
4814
- "0.8"
49-
- "0.6"
50-
- "0.4"
5115
before_install:
52-
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 2.*) npm install -g npm@2 ;; esac ; fi'
16+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g [email protected] ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 2.*) npm install -g npm@2 ;; esac ; fi'
5317
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
18+
install:
19+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g [email protected] && npm install -g [email protected] && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
5420
script:
55-
- 'if [ "${TRAVIS_NODE_VERSION}" != "4.4" ]; then npm run tests-only ; else npm test ; fi'
21+
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
22+
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
23+
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
24+
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
5625
sudo: false
26+
env:
27+
- TEST=true
5728
matrix:
5829
fast_finish: true
59-
allow_failures:
30+
include:
31+
- node_js: "node"
32+
env: PRETEST=true
33+
- node_js: "node"
34+
env: COVERAGE=true
35+
- node_js: "7.8"
36+
env: TEST=true ALLOW_FAILURE=true
37+
- node_js: "7.7"
38+
env: TEST=true ALLOW_FAILURE=true
39+
- node_js: "7.6"
40+
env: TEST=true ALLOW_FAILURE=true
41+
- node_js: "7.5"
42+
env: TEST=true ALLOW_FAILURE=true
43+
- node_js: "7.4"
44+
env: TEST=true ALLOW_FAILURE=true
45+
- node_js: "7.3"
46+
env: TEST=true ALLOW_FAILURE=true
47+
- node_js: "7.2"
48+
env: TEST=true ALLOW_FAILURE=true
49+
- node_js: "7.1"
50+
env: TEST=true ALLOW_FAILURE=true
51+
- node_js: "7.0"
52+
env: TEST=true ALLOW_FAILURE=true
53+
- node_js: "6.9"
54+
env: TEST=true ALLOW_FAILURE=true
55+
- node_js: "6.8"
56+
env: TEST=true ALLOW_FAILURE=true
57+
- node_js: "6.7"
58+
env: TEST=true ALLOW_FAILURE=true
59+
- node_js: "6.6"
60+
env: TEST=true ALLOW_FAILURE=true
61+
- node_js: "6.5"
62+
env: TEST=true ALLOW_FAILURE=true
63+
- node_js: "6.4"
64+
env: TEST=true ALLOW_FAILURE=true
65+
- node_js: "6.3"
66+
env: TEST=true ALLOW_FAILURE=true
6067
- node_js: "6.2"
68+
env: TEST=true ALLOW_FAILURE=true
6169
- node_js: "6.1"
70+
env: TEST=true ALLOW_FAILURE=true
6271
- node_js: "6.0"
72+
env: TEST=true ALLOW_FAILURE=true
6373
- node_js: "5.11"
74+
env: TEST=true ALLOW_FAILURE=true
6475
- node_js: "5.10"
76+
env: TEST=true ALLOW_FAILURE=true
6577
- node_js: "5.9"
78+
env: TEST=true ALLOW_FAILURE=true
6679
- node_js: "5.8"
80+
env: TEST=true ALLOW_FAILURE=true
6781
- node_js: "5.7"
82+
env: TEST=true ALLOW_FAILURE=true
6883
- node_js: "5.6"
84+
env: TEST=true ALLOW_FAILURE=true
6985
- node_js: "5.5"
86+
env: TEST=true ALLOW_FAILURE=true
7087
- node_js: "5.4"
88+
env: TEST=true ALLOW_FAILURE=true
7189
- node_js: "5.3"
90+
env: TEST=true ALLOW_FAILURE=true
7291
- node_js: "5.2"
92+
env: TEST=true ALLOW_FAILURE=true
7393
- node_js: "5.1"
94+
env: TEST=true ALLOW_FAILURE=true
7495
- node_js: "5.0"
96+
env: TEST=true ALLOW_FAILURE=true
97+
- node_js: "4.7"
98+
env: TEST=true ALLOW_FAILURE=true
99+
- node_js: "4.6"
100+
env: TEST=true ALLOW_FAILURE=true
101+
- node_js: "4.5"
102+
env: TEST=true ALLOW_FAILURE=true
103+
- node_js: "4.4"
104+
env: TEST=true ALLOW_FAILURE=true
75105
- node_js: "4.3"
106+
env: TEST=true ALLOW_FAILURE=true
76107
- node_js: "4.2"
108+
env: TEST=true ALLOW_FAILURE=true
77109
- node_js: "4.1"
110+
env: TEST=true ALLOW_FAILURE=true
78111
- node_js: "4.0"
112+
env: TEST=true ALLOW_FAILURE=true
79113
- node_js: "iojs-v3.2"
114+
env: TEST=true ALLOW_FAILURE=true
80115
- node_js: "iojs-v3.1"
116+
env: TEST=true ALLOW_FAILURE=true
81117
- node_js: "iojs-v3.0"
118+
env: TEST=true ALLOW_FAILURE=true
82119
- node_js: "iojs-v2.4"
120+
env: TEST=true ALLOW_FAILURE=true
83121
- node_js: "iojs-v2.3"
122+
env: TEST=true ALLOW_FAILURE=true
84123
- node_js: "iojs-v2.2"
124+
env: TEST=true ALLOW_FAILURE=true
85125
- node_js: "iojs-v2.1"
126+
env: TEST=true ALLOW_FAILURE=true
86127
- node_js: "iojs-v2.0"
128+
env: TEST=true ALLOW_FAILURE=true
87129
- node_js: "iojs-v1.7"
130+
env: TEST=true ALLOW_FAILURE=true
88131
- node_js: "iojs-v1.6"
132+
env: TEST=true ALLOW_FAILURE=true
89133
- node_js: "iojs-v1.5"
134+
env: TEST=true ALLOW_FAILURE=true
90135
- node_js: "iojs-v1.4"
136+
env: TEST=true ALLOW_FAILURE=true
91137
- node_js: "iojs-v1.3"
138+
env: TEST=true ALLOW_FAILURE=true
92139
- node_js: "iojs-v1.2"
140+
env: TEST=true ALLOW_FAILURE=true
93141
- node_js: "iojs-v1.1"
142+
env: TEST=true ALLOW_FAILURE=true
94143
- node_js: "iojs-v1.0"
144+
env: TEST=true ALLOW_FAILURE=true
95145
- node_js: "0.11"
146+
env: TEST=true ALLOW_FAILURE=true
96147
- node_js: "0.9"
148+
env: TEST=true ALLOW_FAILURE=true
97149
- node_js: "0.6"
150+
env: TEST=true ALLOW_FAILURE=true
98151
- node_js: "0.4"
152+
env: TEST=true ALLOW_FAILURE=true
153+
##- node_js: "7"
154+
#env: TEST=true
155+
#os: osx
156+
#- node_js: "6"
157+
#env: TEST=true
158+
#os: osx
159+
#- node_js: "5"
160+
#env: TEST=true
161+
#os: osx
162+
#- node_js: "4"
163+
#env: TEST=true
164+
#os: osx
165+
#- node_js: "iojs"
166+
#env: TEST=true
167+
#os: osx
168+
#- node_js: "0.12"
169+
#env: TEST=true
170+
#os: osx
171+
#- node_js: "0.10"
172+
#env: TEST=true
173+
#os: osx
174+
#- node_js: "0.8"
175+
#env: TEST=true
176+
#os: osx
177+
allow_failures:
178+
- os: osx
179+
- env: TEST=true ALLOW_FAILURE=true

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"description": "Port of jQuery.extend for node.js and the browser",
66
"main": "index",
77
"scripts": {
8-
"test": "npm run lint && npm run tests-only && npm run coverage-quiet",
8+
"pretest": "npm run lint",
9+
"test": "npm run tests-only",
10+
"posttest": "npm run coverage-quiet",
911
"tests-only": "node test",
1012
"coverage": "covert test/index.js",
1113
"coverage-quiet": "covert test/index.js --quiet",

0 commit comments

Comments
 (0)