diff --git a/.travis.yml b/.travis.yml index 52ae1c4..a066d24 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,6 @@ script: - npm run test -- --failTaskOnError --suppressPassed after_success: - ## We only need to run coveralls for one node version (doesn't matter which one). - ## We also ignore publishing failures, since restarting an existing travis build would otherwise break. - - if [$(node --version) == v6*]; then npm run coverage && npm run coveralls; fi +## We only need to run coveralls for one node version (doesn't matter which one). +## We also ignore publishing failures, since restarting an existing travis build would otherwise break. + - if node --version | grep -q ^v6 ; npm run coverage && npm run coveralls; fi