-
-
Notifications
You must be signed in to change notification settings - Fork 736
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
bf6c146
commit e41dfd2
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 |
---|---|---|
|
@@ -8,5 +8,12 @@ node_js: | |
- "2.0" | ||
- "2.3" | ||
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" |