Skip to content

Commit df5e8e3

Browse files
committed
build: skip istanbul coverage on Node.js 0.8
1 parent 7b2c98e commit df5e8e3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ node_js:
77
- "1.8"
88
- "2.0"
99
sudo: false
10-
script: "npm run-script test-travis"
11-
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls"
10+
before_install:
11+
# Setup Node.js version-specific dependencies
12+
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
13+
script:
14+
# Run test script, depending on istanbul install
15+
- "test -n $(npm -ps ls istanbul) || npm test"
16+
- "test -z $(npm -ps ls istanbul) || npm run-script test-travis"
17+
after_script:
18+
- "test -e ./coverage/lcov.info && npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"

0 commit comments

Comments
 (0)