Skip to content

Commit

Permalink
build: skip istanbul coverage on Node.js 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 11, 2015
1 parent 7b2c98e commit df5e8e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ node_js:
- "1.8"
- "2.0"
sudo: false
script: "npm run-script test-travis"
after_script: "npm install coveralls@2.10.0 && 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"

0 comments on commit df5e8e3

Please sign in to comment.