2019-02-24 15:13:56 +01:00
|
|
|
sudo: false
|
2018-08-06 21:47:05 +02:00
|
|
|
language: go
|
|
|
|
go:
|
2019-02-24 15:13:56 +01:00
|
|
|
- "1.9.x"
|
|
|
|
- "1.10.x"
|
2020-12-06 23:16:02 +01:00
|
|
|
- "1.11.x"
|
2019-02-24 15:13:56 +01:00
|
|
|
- tip
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2018-08-06 21:47:05 +02:00
|
|
|
install:
|
2019-02-24 15:13:56 +01:00
|
|
|
- # 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).
|
2018-08-06 21:47:05 +02:00
|
|
|
script:
|
2019-02-24 15:13:56 +01:00
|
|
|
- go get -t -v ./...
|
|
|
|
- diff -u <(echo -n) <(gofmt -d -s .)
|
|
|
|
- go tool vet .
|
|
|
|
- go test -v -race ./...
|