-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: skip istanbul coverage on Node.js 0.8
- Loading branch information
1 parent
7b2c98e
commit df5e8e3
Showing
1 changed file
with
9 additions
and
2 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 |
---|---|---|
|
@@ -7,5 +7,12 @@ node_js: | |
- "1.8" | ||
- "2.0" | ||
sudo: false | ||
script: "npm run-script test-travis" | ||
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls" | ||
before_install: | ||
# Setup Node.js version-specific dependencies | ||
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul" | ||
script: | ||
# Run test script, depending on istanbul install | ||
- "test -n $(npm -ps ls istanbul) || npm test" | ||
- "test -z $(npm -ps ls istanbul) || npm run-script test-travis" | ||
after_script: | ||
- "test -e ./coverage/lcov.info && npm install coveralls@2 && cat ./coverage/lcov.info | coveralls" |