From 4203548722f8a90399e47acc98c1a3696eaa2a6d Mon Sep 17 00:00:00 2001 From: Suhas Karanth Date: Mon, 23 Dec 2019 21:22:52 +0530 Subject: [PATCH] Run travis CI only on master branch and PRs (#114) If a PR is created using a branch pushed to origin, this triggers travis CI twice, once for the PR and another for the branch. So run travis CI for only the master branch and when PRs are created using origin branches. If CI needs to be run on any specific branch other than master, it would need to be whitelisted. Co-authored-by: Mat Ryer --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6ea6fdd..1bcf6df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,10 @@ language: go sudo: false +branches: + only: + - master + go: - 1.11.x - 1.12.x