Skip to content

Commit

Permalink
Travis: don't duplicate testing on Node's latest LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 27, 2019
1 parent ac198b9 commit e11e900
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ node_js:
- '8'
- '6'

script: npm run testonly
script: |
echo "$TRAVIS_NODE_VERSION"
if [[ "$TRAVIS_NODE_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 e11e900

Please sign in to comment.