...
1language: go
2os:
3 - windows
4 - linux
5 - osx
6go:
7 - "1.12"
8env:
9 global:
10 - GO111MODULE=on
11cache:
12 directories:
13 - $HOME/.cache/go-build
14 - $HOME/gopath/pkg/mod
15install:
16 - go mod download
17 - go get github.com/rakyll/gotest
18script:
19 - CI=travis
20 - COVER_PKGS=$(go list ./... | grep -v testutils | tr '\n' ',')
21 - gotest -race -v ./... -tags integration -coverpkg=$COVER_PKGS -covermode=atomic -coverprofile=coverage.out -bench . -cpu 1,4
22after_success:
23 - CI=true
24 - bash <(curl -s https://codecov.io/bash)
View as plain text