Skip to content

Commit 8d08413

Browse files
committed
chore(build): Run coverage report sending and call sematic-release only on Travis leader
1 parent 8cbd99e commit 8d08413

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cache:
44
directories:
55
- node_modules
66
notifications:
7-
email: false
7+
email: true
88
node_js:
99
- "6"
1010
- "5"
@@ -24,8 +24,8 @@ after_success:
2424
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
2525
- python travis_after_all.py
2626
- export $(cat .to_export_back) &> /dev/null
27-
- bash <(curl -s https://codecov.io/bash)
28-
- npm run semantic-release
27+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then bash <(curl -s https://codecov.io/bash); fi
28+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run semantic-release; fi
2929
branches:
3030
only:
3131
- master

0 commit comments

Comments
 (0)