4203548722
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>
24 lines
237 B
YAML
24 lines
237 B
YAML
language: go
|
|
|
|
sudo: false
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
go:
|
|
- 1.11.x
|
|
- 1.12.x
|
|
- 1.13.x
|
|
- tip
|
|
|
|
before_install:
|
|
- go get golang.org/x/lint/golint
|
|
|
|
before_script:
|
|
- go vet ./...
|
|
- golint ./...
|
|
|
|
script:
|
|
- go test -v ./...
|