Skip to content

Commit

Permalink
fix: move code coverage push to separate job.
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Mar 4, 2020
1 parent d11d674 commit b90caa3
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ dist: trusty

language: node_js
node_js:
- "stable"
- "latest"
- 8
- stable
- lts/*
- 10

cache:
Expand All @@ -16,12 +15,18 @@ script:
- yarn build
- yarn test

after_script:
- yarn add -D codacy-coverage
- cat ./coverage/lcov.info | codacy-coverage

jobs:
include:
- stage: coverage push
node_js: lts/*
deploy:
provider: script
skip_cleanup: true
script:
- yarn test
- yarn add -D codacy-coverage
- cat ./coverage/lcov.info | codacy-coverage

- stage: release
node_js: lts/*
deploy:
Expand Down

0 comments on commit b90caa3

Please sign in to comment.