Skip to content

Commit 0af0c9c

Browse files
committed
chore(build): Improve travis.yml allow to check PRs
1 parent 7b08a78 commit 0af0c9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ after_success:
3232
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
3333
- python travis_after_all.py
3434
- export $(cat .to_export_back) &> /dev/null
35-
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then bash <(curl -s https://codecov.io/bash); fi
36-
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run semantic-release; fi
35+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then bash <(curl -s https://codecov.io/bash); fi
36+
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run semantic-release; fi
3737
branches:
38-
only:
39-
- master
38+
except:
39+
- /^v\d+\.\d+\.\d+$/

0 commit comments

Comments
 (0)