File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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 mocha@1.21.5
47+ elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
48+ npm install --save-dev mocha@2.5.3
49+ elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
50+ npm install --save-dev mocha@3.5.3
51+ fi
4052 # Update Node.js modules
4153 - |
4254 # Prune & rebuild node_modules
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments