Commit 984eef7d authored by Donald Stufft's avatar Donald Stufft Committed by Brett Cannon

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.
parent b52260d8
......@@ -6,6 +6,11 @@ group: beta
# To cache doc-building dependencies.
cache: pip
branches:
only:
- master
- /^\d\.\d$/
os:
- linux
# macOS builds are disabled as the machines are under-provisioned on Travis,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment