2018-01-28 14:56:30 +00:00
language : go
2019-04-21 17:58:15 +00:00
go_import_path : github.com/sirupsen/logrus
git :
depth : 1
2018-01-28 14:56:30 +00:00
env :
2019-04-21 17:58:15 +00:00
- GO111MODULE=on
- GO111MODULE=off
go : [ 1.10 .x, 1.11.x, 1.12.x ]
os : [ linux, osx, windows ]
matrix :
exclude :
- env : GO111MODULE=on
go : 1.10 .x
2018-01-28 14:56:30 +00:00
install :
2019-04-21 17:58:15 +00:00
- if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi
- if [[ "$GO111MODULE" == "off" ]]; then go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences; fi
2018-01-28 14:56:30 +00:00
script :
2019-04-21 17:58:15 +00:00
- export GOMAXPROCS=4
- export GORACE=halt_on_error=1
2018-01-28 14:56:30 +00:00
- go test -race -v ./...
2019-04-21 17:58:15 +00:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi