Skip to content

Commit 5f426c8

Browse files
committed
1 parent ce921e2 commit 5f426c8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ before_install:
4040
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
4141
npm rm --save-dev istanbul
4242
fi
43+
- |
44+
# mocha for testing
45+
# - use 1.x for Node.js < 0.8
46+
# - use 2.x for Node.js < 0.10
47+
# - use 3.x for Node.js < 6
48+
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 8 ]]; then
49+
npm install --save-dev [email protected]
50+
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
51+
npm install --save-dev [email protected]
52+
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
53+
npm install --save-dev [email protected]
54+
fi
4355
# Update Node.js modules
4456
- |
4557
# Prune & rebuild node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"eslint-plugin-promise": "4.0.1",
2626
"eslint-plugin-standard": "4.0.0",
2727
"istanbul": "0.4.5",
28-
"mocha": "1.21.5"
28+
"mocha": "5.2.0"
2929
},
3030
"engines": {
3131
"node": ">= 0.6"

0 commit comments

Comments
 (0)