Skip to content

Commit c0b4d76

Browse files
committed
Test 0.10 and 0.12 in travis
1 parent 8f6a06f commit c0b4d76

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
node_js:
3+
- "0.10"
4+
- "0.12"
35
- "4"
46
- "5"
57
- "6"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "rm -r es5 > /dev/null; babel ./*.js -d es5",
88
"prepublish": "npm run build",
99
"lint": "eslint *.js",
10-
"mocha": "mocha *.test.js es5/*.test.js",
11-
"test": "npm run lint && npm run mocha"
10+
"mocha": "[ ${npm_config_node_version:0:2} == '0.' ] && mocha es5/*.test.js || mocha *.test.js",
11+
"test": "npm run lint && npm run build && npm run mocha"
1212
},
1313
"repository": {
1414
"type": "git",

0 commit comments

Comments
 (0)