feat: add travis build configuration

This commit is contained in:
Stefan Martinov
2020-02-27 19:12:54 +01:00
parent 24eacd9d03
commit 49cb8487ae
+32
View File
@@ -0,0 +1,32 @@
language: go
go:
- master
- "1.13"
install: true
matrix:
allow_failures:
- go: master
fast_finish: true
notifications:
email: true
before_script:
- go get golang.org/x/lint/golint
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get github.com/go-playground/overalls
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
script:
# Run all the tests with the race detector enabled
- overalls -project=github.com/globusdigital/feature-toggles -covermode=atomic -debug -- -race -v -coverpkg=./...
- $HOME/gopath/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci -repotoken=$COVERALLS_TOKEN
after_success:
# Run linter
- golangci-lint run ./... --exclude 'composite literal uses unkeyed fields$'
- golint -set_exit_status $(go list ./...)