File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,16 @@ matrix:
39
39
env : TOX_ENV=py37
40
40
script : tox -e $TOX_ENV
41
41
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
+
42
53
notifications :
43
54
email : false
Original file line number Diff line number Diff line change @@ -24,5 +24,16 @@ install:
24
24
25
25
build : false
26
26
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
+
27
38
test_script :
28
39
- " tox -e %TOX_PY%"
You can’t perform that action at this time.
0 commit comments