2019-03-27 19:15:23 +08:00
|
|
|
sudo: false
|
|
|
|
language: go
|
|
|
|
go:
|
2019-10-31 09:06:25 +08:00
|
|
|
- "1.10.x"
|
|
|
|
- "1.11.x"
|
2019-03-27 19:15:23 +08:00
|
|
|
- tip
|
|
|
|
matrix:
|
2019-10-31 09:06:25 +08:00
|
|
|
fast_finish: true
|
2019-03-27 19:15:23 +08:00
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
install:
|
|
|
|
- # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
|
|
|
|
script:
|
|
|
|
- go get -t -v ./...
|
|
|
|
- diff -u <(echo -n) <(gofmt -d -s .)
|
|
|
|
- go tool vet .
|
2019-10-31 09:06:25 +08:00
|
|
|
- go test -v ./...
|