File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ before_install:
3232 - |
3333 # Remove example dependencies
3434 npm rm --silent --save-dev connect-redis
35+ # Setup Node.js version-specific dependencies
36+ - |
37+ # mocha for testing
38+ # - use 3.x for Node.js < 6
39+ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
40+ npm install --silent --save-dev [email protected] 41+ fi
3542 # Update Node.js modules
3643 - |
3744 # Prune and rebuild node_modules
Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ install:
2525 - ps : |
2626 # Remove example dependencies
2727 npm rm --silent --save-dev connect-redis
28+ # Setup Node.js version-specific dependencies
29+ - ps : |
30+ # mocha for testing
31+ # - use 3.x for Node.js < 6
32+ if ($env:nodejs_version.split(".")[0] -lt 6) {
33+ npm install --silent --save-dev [email protected] 34+ }
2835 # Update Node.js modules
2936 - ps : |
3037 # Prune & rebuild node_modules
Original file line number Diff line number Diff line change 6969 "istanbul" : " 0.4.5" ,
7070 "marked" : " 0.5.0" ,
7171 "method-override" : " 3.0.0" ,
72- "mocha" : " 3.5.3 " ,
72+ "mocha" : " 5.2.0 " ,
7373 "morgan" : " 1.9.1" ,
7474 "multiparty" : " 4.2.1" ,
7575 "pbkdf2-password" : " 1.2.1" ,
9090 ],
9191 "scripts" : {
9292 "lint" : " eslint ." ,
93- "test" : " mocha --require test/support/env --reporter spec --bail --check-leaks --no-exit test/ test/acceptance/" ,
94- "test-ci" : " istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks --no-exit test/ test/acceptance/" ,
95- "test-cov" : " istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks --no-exit test/ test/acceptance/" ,
96- "test-tap" : " mocha --require test/support/env --reporter tap --check-leaks --no-exit test/ test/acceptance/"
93+ "test" : " mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/" ,
94+ "test-ci" : " istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/ test/acceptance/" ,
95+ "test-cov" : " istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/ test/acceptance/" ,
96+ "test-tap" : " mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"
9797 }
9898}
Original file line number Diff line number Diff line change 11--require should
22--slow 20
3- --growl
You can’t perform that action at this time.
0 commit comments