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 Jul 6, 2015
1 parent bf6c146 commit e41dfd2
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 @@ -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"

0 comments on commit e41dfd2

Please sign in to comment.