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 <matryer@users.noreply.github.com>
This commit is contained in:
parent
fc1865052c
commit
4203548722
@ -2,6 +2,10 @@ language: go
|
|||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.11.x
|
- 1.11.x
|
||||||
- 1.12.x
|
- 1.12.x
|
||||||
|
Loading…
Reference in New Issue
Block a user