Last active
January 30, 2018 02:20
-
-
Save JohnMurray/675c422fbefdc0f5c7d3491324eba072 to your computer and use it in GitHub Desktop.
Simple Travis CI build for a Go project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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