Skip to content

Commit d45cceb

Browse files
committed
[.travis.yml] eliminate duplicate Travis builds on PR that originate from in repo branches
1 parent 0aece58 commit d45cceb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,16 @@ matrix:
3939
env: TOX_ENV=py37
4040
script: tox -e $TOX_ENV
4141

42+
# The following prevents Travis from running CI on pull requests that come from a
43+
# branch in the same repository. Without this, it will run the same CI for the
44+
# pull request branch _and_ the pull request itself, which makes no sense.
45+
branches:
46+
only:
47+
- master
48+
# We want to build wip/* branches since these are not usually used for PRs
49+
- /^wip\/.*$/
50+
# We want to build version tags as well.
51+
- /^v\d+\.\d+.*$/
52+
4253
notifications:
4354
email: false

0 commit comments

Comments
 (0)