Skip to content

Commit

Permalink
Travis: don't duplicate testing on Node's latest LTS (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 27, 2019
1 parent ac198b9 commit 7d0df0d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Expand Up @@ -11,12 +11,16 @@ node_js:
- '8'
- '6'

script: npm run testonly
script: |
if [[ "$(node -pe process.version)" == v10.* ]]; then # Is latest LTS?
npm run test:ci &&
bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
else
npm run testonly
fi
jobs:
include:
- node_js: 'lts/*'
script: npm run test:ci && bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
- stage: deploy
if: branch = master OR tag IS present
script: echo "Deploying..."
Expand Down

0 comments on commit 7d0df0d

Please sign in to comment.