Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
build: mocha@5.2.0
  • Loading branch information
dougwilson committed Oct 22, 2018
1 parent d6c7959 commit 3b11d7f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -27,6 +27,15 @@ before_install:
# Remove benchmark dependencies
npm rm --silent --save-dev benchmark beautify-benchmark
# Setup Node.js version-specific dependencies
- |
# mocha for testing
# - 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 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
- |
# istanbul for coverage
# - remove for Node.js < 0.10
Expand Down
10 changes: 10 additions & 0 deletions appveyor.yml
Expand Up @@ -38,6 +38,16 @@ install:
cmd.exe /c "node -pe `"Object.keys(require('./package').devDependencies).join('\n')`"" | `
sls "^eslint(-|$)" | `
%{ npm rm --silent --save-dev $_ }
# Setup Node.js version-specific dependencies
- ps: |
# mocha for testing
# - use 2.x for Node.js < 0.10
# - use 3.x for Node.js < 6
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
npm install --silent --save-dev mocha@2.5.3
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) {
npm install --silent --save-dev mocha@3.5.3
}
# Update Node.js modules
- ps: |
# Prune & rebuild node_modules
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -21,7 +21,7 @@
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-standard": "4.0.0",
"istanbul": "0.4.5",
"mocha": "2.5.3",
"mocha": "5.2.0",
"safe-buffer": "5.1.1"
},
"files": [
Expand All @@ -38,7 +38,7 @@
"bench": "node benchmark/index.js",
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --reporter spec --bail test/",
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --no-exit test/",
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/"
}
}

0 comments on commit 3b11d7f

Please sign in to comment.