From 72333a08ecfc796be711dbac4d7ceab8ce36404e Mon Sep 17 00:00:00 2001 From: Steven Danna Date: Tue, 2 Aug 2016 11:55:06 +0100 Subject: [PATCH] Only test PRs and pushes to master Without this, Travis often ends up running 2 CI jobs for updates to a PR: 1 for the update to the PR, 1 for the push to the branch. By adding this bit of config, travis will still run a job for any update to a PR, but won't run a duplicate job for the push to the branch that the PR is based off of. We use this in chef/chef and chef/chef-server to reduce unnecessary use of TravisCI resource. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8bb564167..d3f62551a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ sudo: required +branches: + only: + - master language: ruby cache: bundler dist: trusty