Skip to content

Commit 708927a

Browse files
committed
feat(test): testing on multiple node versions, closes #5
1 parent a0bd8c6 commit 708927a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ cache:
66
notifications:
77
email: false
88
node_js:
9+
- '0.12'
910
- '4'
11+
- '6'
1012
before_install:
1113
- npm i -g npm@^2.0.0
1214
before_script:

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"use-case": "node test/use-case.js & node test/use-case-nested.js",
1010
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1111
"issues": "git-issues",
12-
"check": "autochecker 0.12.9 4.0 5.0",
12+
"check": "autochecker 0.12.9 4.0 5.0 6",
1313
"check-0.12": "autochecker 0.12.6",
1414
"commit": "commit-wizard",
1515
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
@@ -28,6 +28,7 @@
2828
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",
2929
"license": "MIT",
3030
"devDependencies": {
31+
"condition-node-version": "1.3.0",
3132
"git-issues": "1.2.0",
3233
"gt": "0.10.0",
3334
"pre-git": "3.8.3",
@@ -44,10 +45,18 @@
4445
"npm test",
4546
"npm run use-case"
4647
],
47-
"pre-push": ["npm run size"],
48+
"pre-push": [
49+
"npm run size"
50+
],
4851
"post-commit": [],
4952
"post-checkout": [],
5053
"post-merge": []
5154
}
55+
},
56+
"release": {
57+
"verifyConditions": {
58+
"path": "condition-node-version",
59+
"node": "4"
60+
}
5261
}
5362
}

0 commit comments

Comments
 (0)