Skip to content

Commit 035de3a

Browse files
committed
1 parent e07b1bc commit 035de3a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ before_install:
3737
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
3838
npm rm --save-dev istanbul
3939
fi
40+
- |
41+
# mocha for testing
42+
# - use 2.x for Node.js < 0.10
43+
# - use 3.x for Node.js < 6
44+
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
45+
npm install --save-dev [email protected]
46+
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
47+
npm install --save-dev [email protected]
48+
fi
4049
# Update Node.js modules
4150
- |
4251
# Prune & rebuild node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"eslint-plugin-promise": "4.0.1",
2323
"eslint-plugin-standard": "4.0.0",
2424
"istanbul": "0.4.5",
25-
"mocha": "2.5.3"
25+
"mocha": "5.2.0"
2626
},
2727
"files": [
2828
"HISTORY.md",

0 commit comments

Comments
 (0)