From 84418516c9a6e1ecbbc3387fc6bd3e9a8f60cc61 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Sat, 10 Oct 2015 13:31:35 -0700 Subject: [PATCH] Limit Travis runs to master and PRs. --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 46b14fe63..3041fdd82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,15 @@ env: - TOXENV=lint - TOXENV=cover + +# Only build pushes to the master branch, PRs, and branches beginning with +# `test-`. This reduces the number of simultaneous Travis runs, which speeds +# turnaround time on review since there is a cap of 5 simultaneous runs. +branches: + only: + - master + - /^test-.*$/ + sudo: false # containers addons: # make sure simplehttp simple verification works (custom /etc/hosts)