-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97df811
commit 2a47ca6
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.nyc_output/ | ||
node_modules/ | ||
coverage/ | ||
npm-debug.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,12 @@ before_install: | |
elif node_version_lt '6.0'; then npm_use_module 'mocha' '5.2.0' | ||
elif node_version_lt '8.0'; then npm_use_module 'mocha' '6.2.2' | ||
fi | ||
- | | ||
# Configure nyc for testing | ||
if node_version_lt '4.0'; then npm_use_module 'nyc' '10.3.2' | ||
elif node_version_lt '6.0'; then npm_use_module 'nyc' '11.9.0' | ||
elif node_version_lt '8.0'; then npm_use_module 'nyc' '14.1.1' | ||
fi | ||
# Update Node.js modules | ||
- | | ||
# Prune & rebuild node_modules | ||
|
@@ -68,15 +74,13 @@ before_install: | |
script: | ||
- | | ||
# Run test script | ||
npm run-script test-travis | ||
npm run-script test-ci | ||
- | | ||
# Run linting, depending on eslint install | ||
if npm_module_installed 'eslint'; then npm run-script lint | ||
fi | ||
after_script: | ||
- | | ||
# Upload coverage to coveralls | ||
if [[ -f ./coverage/lcov.info ]]; then | ||
npm install --save-dev [email protected] | ||
coveralls < ./coverage/lcov.info | ||
fi | ||
npm install --save-dev coveralls@2 | ||
nyc report --reporter=text-lcov | coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters