Skip to content
This repository was archived by the owner on Apr 26, 2019. It is now read-only.

Commit 3887b30

Browse files
committed
chore(travis): avoid double builds on PRs
1 parent b38ae43 commit 3887b30

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ script: npm run $COMMAND
1111
before_script:
1212
- npm prune
1313
after_success:
14-
- npm run test:coverage && npm run test:coverage:upload
14+
- npm run coverage:upload
1515
- npm run semantic-release
16+
17+
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
18+
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
1619
branches:
17-
except:
18-
- /^v\d+\.\d+\.\d+$/
20+
only:
21+
- master
22+
- /^greenkeeper.*$/

0 commit comments

Comments
 (0)