Skip to content

Commit 58d7508

Browse files
committed
[Tests] on all node minors; improve test matrix
1 parent 7290076 commit 58d7508

File tree

2 files changed

+132
-26
lines changed

2 files changed

+132
-26
lines changed

.travis.yml

+128-25
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,161 @@
11
language: node_js
2+
os:
3+
- linux
24
node_js:
3-
- "4.1"
4-
- "4.0"
5+
- "7.4"
6+
- "6.9"
7+
- "5.12"
8+
- "4.6"
59
- "iojs-v3.3"
6-
- "iojs-v3.2"
7-
- "iojs-v3.1"
8-
- "iojs-v3.0"
910
- "iojs-v2.5"
10-
- "iojs-v2.4"
11-
- "iojs-v2.3"
12-
- "iojs-v2.2"
13-
- "iojs-v2.1"
14-
- "iojs-v2.0"
1511
- "iojs-v1.8"
16-
- "iojs-v1.7"
17-
- "iojs-v1.6"
18-
- "iojs-v1.5"
19-
- "iojs-v1.4"
20-
- "iojs-v1.3"
21-
- "iojs-v1.2"
22-
- "iojs-v1.1"
23-
- "iojs-v1.0"
2412
- "0.12"
25-
- "0.11"
2613
- "0.10"
27-
- "0.9"
2814
- "0.8"
29-
- "0.6"
30-
- "0.4"
3115
before_install:
32-
- '[ "${TRAVIS_NODE_VERSION}" = "0.6" ] || npm install -g [email protected] && npm install -g npm'
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'
17+
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
18+
script:
19+
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
20+
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
21+
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
22+
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
3323
sudo: false
24+
env:
25+
- TEST=true
3426
matrix:
3527
fast_finish: true
36-
allow_failures:
28+
include:
29+
- node_js: "node"
30+
env: PRETEST=true
31+
- node_js: "node"
32+
env: POSTTEST=true
33+
- node_js: "7.3"
34+
env: TEST=true ALLOW_FAILURE=true
35+
- node_js: "7.2"
36+
env: TEST=true ALLOW_FAILURE=true
37+
- node_js: "7.1"
38+
env: TEST=true ALLOW_FAILURE=true
39+
- node_js: "7.0"
40+
env: TEST=true ALLOW_FAILURE=true
41+
- node_js: "6.8"
42+
env: TEST=true ALLOW_FAILURE=true
43+
- node_js: "6.7"
44+
env: TEST=true ALLOW_FAILURE=true
45+
- node_js: "6.6"
46+
env: TEST=true ALLOW_FAILURE=true
47+
- node_js: "6.5"
48+
env: TEST=true ALLOW_FAILURE=true
49+
- node_js: "6.4"
50+
env: TEST=true ALLOW_FAILURE=true
51+
- node_js: "6.3"
52+
env: TEST=true ALLOW_FAILURE=true
53+
- node_js: "6.2"
54+
env: TEST=true ALLOW_FAILURE=true
55+
- node_js: "6.1"
56+
env: TEST=true ALLOW_FAILURE=true
57+
- node_js: "6.0"
58+
env: TEST=true ALLOW_FAILURE=true
59+
- node_js: "5.11"
60+
env: TEST=true ALLOW_FAILURE=true
61+
- node_js: "5.10"
62+
env: TEST=true ALLOW_FAILURE=true
63+
- node_js: "5.9"
64+
env: TEST=true ALLOW_FAILURE=true
65+
- node_js: "5.8"
66+
env: TEST=true ALLOW_FAILURE=true
67+
- node_js: "5.7"
68+
env: TEST=true ALLOW_FAILURE=true
69+
- node_js: "5.6"
70+
env: TEST=true ALLOW_FAILURE=true
71+
- node_js: "5.5"
72+
env: TEST=true ALLOW_FAILURE=true
73+
- node_js: "5.4"
74+
env: TEST=true ALLOW_FAILURE=true
75+
- node_js: "5.3"
76+
env: TEST=true ALLOW_FAILURE=true
77+
- node_js: "5.2"
78+
env: TEST=true ALLOW_FAILURE=true
79+
- node_js: "5.1"
80+
env: TEST=true ALLOW_FAILURE=true
81+
- node_js: "5.0"
82+
env: TEST=true ALLOW_FAILURE=true
83+
- node_js: "4.5"
84+
env: TEST=true ALLOW_FAILURE=true
85+
- node_js: "4.4"
86+
env: TEST=true ALLOW_FAILURE=true
87+
- node_js: "4.3"
88+
env: TEST=true ALLOW_FAILURE=true
89+
- node_js: "4.2"
90+
env: TEST=true ALLOW_FAILURE=true
91+
- node_js: "4.1"
92+
env: TEST=true ALLOW_FAILURE=true
3793
- node_js: "4.0"
94+
env: TEST=true ALLOW_FAILURE=true
3895
- node_js: "iojs-v3.2"
96+
env: TEST=true ALLOW_FAILURE=true
3997
- node_js: "iojs-v3.1"
98+
env: TEST=true ALLOW_FAILURE=true
4099
- node_js: "iojs-v3.0"
100+
env: TEST=true ALLOW_FAILURE=true
41101
- node_js: "iojs-v2.4"
102+
env: TEST=true ALLOW_FAILURE=true
42103
- node_js: "iojs-v2.3"
104+
env: TEST=true ALLOW_FAILURE=true
43105
- node_js: "iojs-v2.2"
106+
env: TEST=true ALLOW_FAILURE=true
44107
- node_js: "iojs-v2.1"
108+
env: TEST=true ALLOW_FAILURE=true
45109
- node_js: "iojs-v2.0"
110+
env: TEST=true ALLOW_FAILURE=true
46111
- node_js: "iojs-v1.7"
112+
env: TEST=true ALLOW_FAILURE=true
47113
- node_js: "iojs-v1.6"
114+
env: TEST=true ALLOW_FAILURE=true
48115
- node_js: "iojs-v1.5"
116+
env: TEST=true ALLOW_FAILURE=true
49117
- node_js: "iojs-v1.4"
118+
env: TEST=true ALLOW_FAILURE=true
50119
- node_js: "iojs-v1.3"
120+
env: TEST=true ALLOW_FAILURE=true
51121
- node_js: "iojs-v1.2"
122+
env: TEST=true ALLOW_FAILURE=true
52123
- node_js: "iojs-v1.1"
124+
env: TEST=true ALLOW_FAILURE=true
53125
- node_js: "iojs-v1.0"
126+
env: TEST=true ALLOW_FAILURE=true
54127
- node_js: "0.11"
128+
env: TEST=true ALLOW_FAILURE=true
55129
- node_js: "0.9"
56-
- node_js: "0.8"
130+
env: TEST=true ALLOW_FAILURE=true
57131
- node_js: "0.6"
132+
env: TEST=true ALLOW_FAILURE=true
58133
- node_js: "0.4"
134+
env: TEST=true ALLOW_FAILURE=true
135+
- node_js: "7"
136+
env: TEST=true
137+
os: osx
138+
- node_js: "6"
139+
env: TEST=true
140+
os: osx
141+
- node_js: "5"
142+
env: TEST=true
143+
os: osx
144+
- node_js: "4"
145+
env: TEST=true
146+
os: osx
147+
- node_js: "iojs"
148+
env: TEST=true
149+
os: osx
150+
- node_js: "0.12"
151+
env: TEST=true
152+
os: osx
153+
- node_js: "0.10"
154+
env: TEST=true
155+
os: osx
156+
- node_js: "0.8"
157+
env: TEST=true
158+
os: osx
159+
allow_failures:
160+
- os: osx
161+
- env: TEST=true ALLOW_FAILURE=true

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"license": "MIT",
77
"main": "index.js",
88
"scripts": {
9-
"test": "npm run lint && node --harmony --es-staging test.js && npm run security",
9+
"pretest": "npm run lint",
10+
"test": "npm run tests-only",
11+
"tests-only": "node --harmony --es-staging test.js",
12+
"posttest": "npm run security",
1013
"coverage": "covert test.js",
1114
"coverage-quiet": "covert test.js --quiet",
1215
"lint": "npm run jscs && npm run eslint",

0 commit comments

Comments
 (0)