From 15a8446588f50c44d4f66812729b9906006261f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 20 Jan 2018 23:36:50 -0800 Subject: [PATCH] Tell Travis CI to only build on pushes to the master branch I've noticed that Travis runs 2 builds for each open PR, that's because one build is triggered on push to a branch and another on opening the PR. It's possible to disable both triggers in Travis web UI but both option are desired, it's just that the push trigger should only fire on a push to the master so that we always run a build after any merge See travis-ci/travis-ci#1147 for details --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2c5f3af17..132e70732 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,10 @@ defaults_js: &DEFAULTS_JS directories: - node_modules +branches: + only: + - "master" + jobs: include: - stage: Test Go code