blob: 848938a6d4ed4306b89d784b54a525610c4650ee [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001language: go
2go_import_path: github.com/sirupsen/logrus
3git:
4 depth: 1
5env:
6 - GO111MODULE=on
7 - GO111MODULE=off
8go: [ 1.11.x, 1.12.x ]
9os: [ linux, osx ]
10matrix:
11 exclude:
12 - go: 1.12.x
13 env: GO111MODULE=off
14 - go: 1.11.x
15 os: osx
16install:
17 - ./travis/install.sh
18 - if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi
19 - if [[ "$GO111MODULE" == "off" ]]; then go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences; fi
20script:
21 - ./travis/cross_build.sh
22 - export GOMAXPROCS=4
23 - export GORACE=halt_on_error=1
24 - go test -race -v ./...
25 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go test -race -v -tags appengine ./... ; fi