logrus/.travis.yml

25 lines
727 B
YAML
Raw Normal View History

2014-03-26 17:20:36 +04:00
language: go
go_import_path: github.com/sirupsen/logrus
git:
depth: 1
2017-05-15 13:45:16 +03:00
env:
- GO111MODULE=on
- GO111MODULE=off
2019-10-14 02:39:38 +03:00
go: [1.11.x, 1.12.x, 1.13.x]
os: [linux, osx]
install:
- ./travis/install.sh
- if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi
2019-10-14 02:51:57 +03:00
- if [[ "$GO111MODULE" == "off" ]]; then go get \
github.com/stretchr/testify/assert \
golang.org/x/sys/unix \
github.com/konsorten/go-windows-terminal-sequences \
github.com/hashicorp/go-version \
github.com/hashicorp/go-version; fi
script:
- ./travis/cross_build.sh
- export GOMAXPROCS=4
- export GORACE=halt_on_error=1
- go test -race -v ./...
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi