Skip to content

Commit

Permalink
build: mocha@5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Aug 1, 2018
1 parent 6d4a993 commit 90dd6f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ before_install:
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
npm rm --save-dev istanbul
fi
- |
# mocha for testing
# - use 1.x for Node.js < 0.8
# - use 2.x for Node.js < 0.10
# - use 3.x for Node.js < 6
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 8 ]]; then
npm install --save-dev mocha@1.21.5
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
npm install --save-dev mocha@2.5.3
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
npm install --save-dev mocha@3.5.3
fi
- |
# browserify for browser testing
# - install on Node.js >= 1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"eslint-plugin-promise": "3.8.0",
"eslint-plugin-standard": "3.1.0",
"istanbul": "0.4.5",
"mocha": "1.21.5"
"mocha": "5.2.0"
},
"files": [
"index.js",
Expand Down

0 comments on commit 90dd6f9

Please sign in to comment.