2018-05-09 01:53:14 +08:00
|
|
|
language: go
|
|
|
|
go:
|
2019-01-14 11:04:38 +08:00
|
|
|
- 1.11.x
|
2019-04-19 10:55:05 +08:00
|
|
|
- 1.12.x
|
2020-03-07 23:35:02 +08:00
|
|
|
- 1.13.x
|
2018-05-09 01:53:14 +08:00
|
|
|
- stable
|
|
|
|
script:
|
|
|
|
- go get -t ./...
|
2019-02-18 15:05:59 +08:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2018-05-09 01:53:14 +08:00
|
|
|
- go test ./...
|
2019-05-21 16:53:16 +08:00
|
|
|
- CGO_ENABLED=1 go test -race ./...
|
2018-05-09 01:53:14 +08:00
|
|
|
- go vet ./...
|
|
|
|
- diff -u <(echo -n) <(gofmt -d -s .)
|
2019-02-24 10:12:41 +08:00
|
|
|
- diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .)
|
2019-02-18 15:05:59 +08:00
|
|
|
- diff -u <(echo -n) <(golint ./...)
|
2018-05-09 01:53:14 +08:00
|
|
|
after_success:
|
2019-03-03 15:51:26 +08:00
|
|
|
- ./internal/scripts/coverage.sh
|
2019-05-21 16:53:16 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CGO_ENABLED=0
|