36 lines
796 B
YAML
36 lines
796 B
YAML
cache:
|
|
go: true
|
|
directories:
|
|
- $HOME/.cache
|
|
- $HOME/bin
|
|
- $HOME/gopath/pkg/mod
|
|
language: go
|
|
go:
|
|
- 1.11
|
|
- 1.12
|
|
- master
|
|
install: true
|
|
script: GO111MODULE=on go test -race
|
|
|
|
matrix:
|
|
include:
|
|
- go: 1.7
|
|
install: go get -t
|
|
- go: 1.8
|
|
install: go get -t
|
|
- go: 1.9
|
|
install: go get -t
|
|
- go: 1.10.x
|
|
install: go get -t
|
|
- go: 1.x
|
|
env: task=coverage
|
|
script: GO111MODULE=on go test -race -covermode=atomic -coverprofile=coverage.txt
|
|
after_success: bash <(curl -s https://codecov.io/bash)
|
|
- go: 1.x
|
|
env: task=bench
|
|
script: GO111MODULE=on ./script/bench
|
|
- go: 1.x
|
|
install: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $HOME/bin v1.16.0
|
|
env: task=clean
|
|
script: GO111MODULE=on ./script/clean
|