Skip to content

Commit f07f368

Browse files
committed
1 parent 09d5654 commit f07f368

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

appveyor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
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",
@@ -90,9 +90,9 @@
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
}

test/mocha.opts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
--require should
22
--slow 20
3-
--growl

0 commit comments

Comments
 (0)