Skip to content

Commit a48949f

Browse files
committed
[Tests] up to node v7.0, v6.9, v5.12, v4.6, io.js v3.3; improve test matrix
1 parent bd0329a commit a48949f

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed

.travis.yml

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
language: node_js
22
node_js:
3+
- "7.0"
4+
- "6.9"
5+
- "6.8"
6+
- "6.7"
7+
- "6.6"
8+
- "6.5"
9+
- "6.4"
10+
- "6.3"
11+
- "6.2"
12+
- "6.1"
13+
- "6.0"
14+
- "5.12"
15+
- "5.11"
16+
- "5.10"
17+
- "5.9"
18+
- "5.8"
19+
- "5.7"
20+
- "5.6"
21+
- "5.5"
22+
- "5.4"
23+
- "5.3"
24+
- "5.2"
25+
- "5.1"
26+
- "5.0"
27+
- "4.6"
28+
- "4.5"
29+
- "4.4"
30+
- "4.3"
31+
- "4.2"
32+
- "4.1"
33+
- "4.0"
34+
- "iojs-v3.3"
335
- "iojs-v3.2"
436
- "iojs-v3.1"
537
- "iojs-v3.0"
@@ -26,11 +58,47 @@ node_js:
2658
- "0.6"
2759
- "0.4"
2860
before_install:
29-
- '[ "${TRAVIS_NODE_VERSION}" = "0.6" ] || npm install -g [email protected] && npm install -g npm'
61+
- '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'
62+
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
63+
script:
64+
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
65+
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
66+
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
3067
sudo: false
68+
env:
69+
- TEST=true
3170
matrix:
3271
fast_finish: true
72+
include:
3373
allow_failures:
74+
- node_js: "6.8"
75+
- node_js: "6.7"
76+
- node_js: "6.6"
77+
- node_js: "6.5"
78+
- node_js: "6.4"
79+
- node_js: "6.3"
80+
- node_js: "6.2"
81+
- node_js: "6.1"
82+
- node_js: "6.0"
83+
- node_js: "5.11"
84+
- node_js: "5.10"
85+
- node_js: "5.9"
86+
- node_js: "5.8"
87+
- node_js: "5.7"
88+
- node_js: "5.6"
89+
- node_js: "5.5"
90+
- node_js: "5.4"
91+
- node_js: "5.3"
92+
- node_js: "5.2"
93+
- node_js: "5.1"
94+
- node_js: "5.0"
95+
- node_js: "4.5"
96+
- node_js: "4.4"
97+
- node_js: "4.3"
98+
- node_js: "4.2"
99+
- node_js: "4.1"
100+
- node_js: "4.0"
101+
- node_js: "iojs-v3.2"
34102
- node_js: "iojs-v3.1"
35103
- node_js: "iojs-v3.0"
36104
- node_js: "iojs-v2.4"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"tape": "^4.5.1"
88
},
99
"scripts": {
10-
"test": "tape test/*.js"
10+
"test": "npm run tests-only",
11+
"tests-only": "tape test/*.js"
1112
},
1213
"testling": {
1314
"files": [

0 commit comments

Comments
 (0)