Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 984eef7

Browse filesBrowse files
dstufftbrettcannon
authored andcommitted
Only run Travis tests on master and X.Y branches (GH-102)
If someone pushes a branch to python/cpython and then creates a PR it will cause Travis to run tests needlessly, once for the PR and once for the push. This will limit the branches that Travis will run tests for to the `master` branch and branches that match the regex `^\d\.\d$`. This will have the effect that if someone purposely makes another branch they won't get tests to run, but in that rare case they can adjust this themselves.
1 parent b52260d commit 984eef7
Copy full SHA for 984eef7

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ group: beta
66
# To cache doc-building dependencies.
77
cache: pip
88

9+
branches:
10+
only:
11+
- master
12+
- /^\d\.\d$/
13+
914
os:
1015
- linux
1116
# macOS builds are disabled as the machines are under-provisioned on Travis,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.