Skip to content

Commit 1f7aa37

Browse files
committed
[Tests] test on every minor version of node.
Closes #109. Closes #75. Closes #74. Closes #70.
1 parent 3e8a8da commit 1f7aa37

File tree

2 files changed

+123
-3
lines changed

2 files changed

+123
-3
lines changed

.travis.yml

Lines changed: 121 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,123 @@
11
language: node_js
22
node_js:
3-
- 0.6
4-
- 0.8
3+
- "7.2"
4+
- "7.1"
5+
- "7.0"
6+
- "6.9"
7+
- "6.8"
8+
- "6.7"
9+
- "6.6"
10+
- "6.5"
11+
- "6.4"
12+
- "6.3"
13+
- "6.2"
14+
- "6.1"
15+
- "6.0"
16+
- "5.12"
17+
- "5.11"
18+
- "5.10"
19+
- "5.9"
20+
- "5.8"
21+
- "5.7"
22+
- "5.6"
23+
- "5.5"
24+
- "5.4"
25+
- "5.3"
26+
- "5.2"
27+
- "5.1"
28+
- "5.0"
29+
- "4.6"
30+
- "4.5"
31+
- "4.4"
32+
- "4.3"
33+
- "4.2"
34+
- "4.1"
35+
- "4.0"
36+
- "iojs-v3.3"
37+
- "iojs-v3.2"
38+
- "iojs-v3.1"
39+
- "iojs-v3.0"
40+
- "iojs-v2.5"
41+
- "iojs-v2.4"
42+
- "iojs-v2.3"
43+
- "iojs-v2.2"
44+
- "iojs-v2.1"
45+
- "iojs-v2.0"
46+
- "iojs-v1.8"
47+
- "iojs-v1.7"
48+
- "iojs-v1.6"
49+
- "iojs-v1.5"
50+
- "iojs-v1.4"
51+
- "iojs-v1.3"
52+
- "iojs-v1.2"
53+
- "iojs-v1.1"
54+
- "iojs-v1.0"
55+
- "0.12"
56+
- "0.11"
57+
- "0.10"
58+
- "0.9"
59+
- "0.8"
60+
- "0.6"
61+
- "0.4"
62+
before_install:
63+
- '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'
64+
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
65+
script:
66+
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
67+
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
68+
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
69+
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
70+
sudo: false
71+
env:
72+
- TEST=true
73+
matrix:
74+
fast_finish: true
75+
include:
76+
allow_failures:
77+
- node_js: "7.1"
78+
- node_js: "7.0"
79+
- node_js: "6.8"
80+
- node_js: "6.7"
81+
- node_js: "6.6"
82+
- node_js: "6.5"
83+
- node_js: "6.4"
84+
- node_js: "6.3"
85+
- node_js: "6.2"
86+
- node_js: "6.1"
87+
- node_js: "6.0"
88+
- node_js: "5.11"
89+
- node_js: "5.10"
90+
- node_js: "5.9"
91+
- node_js: "5.8"
92+
- node_js: "5.7"
93+
- node_js: "5.6"
94+
- node_js: "5.5"
95+
- node_js: "5.4"
96+
- node_js: "5.3"
97+
- node_js: "5.2"
98+
- node_js: "5.1"
99+
- node_js: "5.0"
100+
- node_js: "4.5"
101+
- node_js: "4.4"
102+
- node_js: "4.3"
103+
- node_js: "4.2"
104+
- node_js: "4.1"
105+
- node_js: "4.0"
106+
- node_js: "iojs-v3.2"
107+
- node_js: "iojs-v3.1"
108+
- node_js: "iojs-v3.0"
109+
- node_js: "iojs-v2.4"
110+
- node_js: "iojs-v2.3"
111+
- node_js: "iojs-v2.2"
112+
- node_js: "iojs-v2.1"
113+
- node_js: "iojs-v2.0"
114+
- node_js: "iojs-v1.7"
115+
- node_js: "iojs-v1.6"
116+
- node_js: "iojs-v1.5"
117+
- node_js: "iojs-v1.4"
118+
- node_js: "iojs-v1.3"
119+
- node_js: "iojs-v1.2"
120+
- node_js: "iojs-v1.1"
121+
- node_js: "iojs-v1.0"
122+
- node_js: "0.9"
123+
- node_js: "0.4"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"module"
1515
],
1616
"scripts": {
17-
"test": "tape test/*.js"
17+
"tests-only": "tape test/*.js",
18+
"test": "npm run --silent tests-only"
1819
},
1920
"devDependencies": {
2021
"tape": "^4.6.3",

0 commit comments

Comments
 (0)