Skip to content

Commit

Permalink
build: nyc@13.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Nov 4, 2018
1 parent 9daa37d commit c023f4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Expand Up @@ -14,14 +14,23 @@ before_install:
- |
# Skip updating shrinkwrap / lock
npm config set shrinkwrap false
# Setup Node.js version-specific dependencies
# Setup Node.js version-specific dependencies
- |
# mocha for testing
# - use 3.x for Node.js < 6
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
npm install --save-dev mocha@3.5.3
fi
# Update Node.js modules
- |
# nyc for coverage
# - use 10.x for Node.js < 4
# - use 11.x for Node.js < 6
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
npm install --save-dev nyc@10.3.2
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
npm install --save-dev nyc@11.9.0
fi
# Update Node.js modules
- |
# Prune & rebuild node_modules
if [[ -d node_modules ]]; then
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"eslint": "2.13.1",
"express": "4.16.3",
"mocha": "5.2.0",
"nyc": "10.3.2",
"nyc": "13.1.0",
"supertest": "1.2.0"
},
"files": [
Expand Down

0 comments on commit c023f4f

Please sign in to comment.