File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,14 @@ before_install:
3030 - |
3131 # mocha for testing
3232 # - use 2.x for Node.js < 0.10
33- # - use 3.x for Node.js < 6
33+ # - use 3.x for Node.js < 4
34+ # - use 5.x for Node.js < 6
3435 if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
3536 npm install --save-dev mocha@2.5.3
36- elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
37+ elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
3738 npm install --save-dev mocha@3.5.3
39+ elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
40+ npm install --save-dev mocha@5.2.0
3841 fi
3942 - |
4043 # istanbul for coverage
Original file line number Diff line number Diff line change @@ -42,11 +42,14 @@ install:
4242 - ps : |
4343 # mocha for testing
4444 # - use 2.x for Node.js < 0.10
45- # - use 3.x for Node.js < 6
45+ # - use 3.x for Node.js < 4
46+ # - use 5.x for Node.js < 6
4647 if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
4748 npm install --silent --save-dev mocha@2.5.3
48- } elseif ([int]$env:nodejs_version.split(".")[0] -lt 6 ) {
49+ } elseif ([int]$env:nodejs_version.split(".")[0] -lt 4 ) {
4950 npm install --silent --save-dev mocha@3.5.3
51+ } elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) {
52+ npm install --silent --save-dev mocha@5.2.0
5053 }
5154 # Update Node.js modules
5255 - ps : |
Original file line number Diff line number Diff line change 2121 "eslint-plugin-promise" : " 4.0.1" ,
2222 "eslint-plugin-standard" : " 4.0.0" ,
2323 "istanbul" : " 0.4.5" ,
24- "mocha" : " 5.2.0 " ,
24+ "mocha" : " 6.1.4 " ,
2525 "safe-buffer" : " 5.1.2" ,
2626 "uid-safe" : " 2.1.5"
2727 },
You can’t perform that action at this time.
0 commit comments