Codebase list golang-github-ovh-go-ovh / debian/0.0_git20181109.ba5adb4-3 .travis.yml
debian/0.0_git20181109.ba5adb4-3

Tree @debian/0.0_git20181109.ba5adb4-3 (Download .tar.gz)

.travis.yml @debian/0.0_git20181109.ba5adb4-3raw · history · blame

language: go

go:
- stable
- "1.10.x"

before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/lint/golint
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi

script:
# Test Code quality
- go vet ./...
- ${GOPATH}/bin/golint ./...
- go test -covermode=count -coverprofile=profile.cov ./...

# Test buildable on most common platforms, beyond Linux
- GOOS=darwin go build ./...
- GOOS=windows go build ./...

# Best effort: notify coveralls. It's too unstable, ignore errors.
- $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci || exit 0