From: Donald Stufft Date: Wed, 15 Feb 2017 01:21:32 +0000 (-0500) Subject: Only run Travis tests on master and X.Y branches (GH-102) X-Git-Tag: v3.7.0a1~1338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=984eef7d6d78e1213d6ea99897343a5059a07c59;p=python 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. --- diff --git a/.travis.yml b/.travis.yml index f9e62147a7..96cd9fd394 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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,