2016-08-30 12:27:35 +08:00
|
|
|
language: go
|
|
|
|
|
|
|
|
install:
|
|
|
|
- go get -d -t -v ./... && go build -v ./...
|
|
|
|
|
|
|
|
go:
|
2018-09-13 10:38:01 +08:00
|
|
|
- 1.11.x
|
2019-03-06 21:40:45 +08:00
|
|
|
- 1.12.x
|
2019-12-24 01:09:28 +08:00
|
|
|
- 1.13.x
|
2020-03-01 00:34:41 +08:00
|
|
|
- 1.14.x
|
2020-08-14 18:19:27 +08:00
|
|
|
- 1.15.x
|
2018-06-30 16:44:09 +08:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2020-11-10 23:48:09 +08:00
|
|
|
- windows
|
2018-06-30 16:44:09 +08:00
|
|
|
|
|
|
|
env:
|
2020-02-07 00:25:01 +08:00
|
|
|
jobs:
|
2018-06-30 16:44:09 +08:00
|
|
|
- GOARCH=amd64
|
|
|
|
- GOARCH=386
|
2016-08-30 12:27:35 +08:00
|
|
|
|
|
|
|
script:
|
2020-07-22 20:20:00 +08:00
|
|
|
- env GO111MODULE=on go vet ./...
|
2020-08-15 00:09:50 +08:00
|
|
|
- env GO111MODULE=on go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
2016-08-30 12:27:35 +08:00
|
|
|
|
|
|
|
after_success:
|
2017-09-26 18:47:18 +08:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|