Skip to content

Commit af25fee

Browse files
committed
1 parent d0afa84 commit af25fee

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ 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 1.x for Node.js < 0.8
43+
# - use 2.x for Node.js < 0.10
44+
# - use 3.x for Node.js < 6
45+
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 8 ]]; then
46+
npm install --save-dev [email protected]
47+
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
48+
npm install --save-dev [email protected]
49+
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
50+
npm install --save-dev [email protected]
51+
fi
4052
# Update Node.js modules
4153
- |
4254
# Prune & rebuild node_modules

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint-plugin-promise": "4.0.1",
2727
"eslint-plugin-standard": "4.0.0",
2828
"istanbul": "0.4.5",
29-
"mocha": "2.5.3",
29+
"mocha": "5.2.0",
3030
"supertest": "1.1.0"
3131
},
3232
"files": [

0 commit comments

Comments
 (0)