Skip to content

Commit 4ceea64

Browse files
Merge pull request #16 from source-foundry/fix-travis-appveyor-pr-builds
Eliminate duplicate Travis and Appveyor builds on PR that originate from a branch in repository
2 parents 0aece58 + eaecc06 commit 4ceea64

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-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

appveyor.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,16 @@ install:
2424

2525
build: false
2626

27+
# The following prevents Travis from running CI on pull requests that come from a
28+
# branch in the same repository. Without this, it will run the same CI for the
29+
# pull request branch _and_ the pull request itself, which makes no sense.
30+
branches:
31+
only:
32+
- master
33+
# We want to build wip/* branches since these are not usually used for PRs
34+
- /^wip\/.*$/
35+
# We want to build version tags as well.
36+
- /^v\d+\.\d+.*$/
37+
2738
test_script:
2839
- "tox -e %TOX_PY%"

0 commit comments

Comments
 (0)