Dinesh Belwalkar | e63f7f9 | 2019-11-22 23:11:16 +0000 | [diff] [blame] | 1 | language: go |
| 2 | go_import_path: github.com/sirupsen/logrus |
| 3 | git: |
| 4 | depth: 1 |
| 5 | env: |
| 6 | - GO111MODULE=on |
| 7 | - GO111MODULE=off |
| 8 | go: [ 1.11.x, 1.12.x ] |
| 9 | os: [ linux, osx ] |
| 10 | matrix: |
| 11 | exclude: |
| 12 | - go: 1.12.x |
| 13 | env: GO111MODULE=off |
| 14 | - go: 1.11.x |
| 15 | os: osx |
| 16 | install: |
| 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 |
| 20 | script: |
| 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 |