Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Last active January 30, 2018 02:20
Show Gist options
  • Save JohnMurray/675c422fbefdc0f5c7d3491324eba072 to your computer and use it in GitHub Desktop.
Save JohnMurray/675c422fbefdc0f5c7d3491324eba072 to your computer and use it in GitHub Desktop.
Simple Travis CI build for a Go project
language: go
go:
- 1.8
- 1.9.x
- master
matrix:
allow_failures:
go: master
fast_finish: true
before_install:
- >-
curl -L -s https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64
-o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- go get gopkg.in/alecthomas/gometalinter.v2
- gometalinter.v2 --install
install:
- dep ensure
script:
- go test -v ./...
- gometalinter.v2 --vendor ./...
notifications:
email:
recipients:
- [email protected]
- [email protected]
on_success: change
on_failure: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment