2018-05-15 21:13:11 +00:00
|
|
|
sudo: false
|
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2020-09-14 18:31:56 +00:00
|
|
|
- "stable"
|
|
|
|
- "1.11.x"
|
|
|
|
- "1.10.x"
|
|
|
|
- "1.9.x"
|
2018-05-15 21:13:11 +00:00
|
|
|
|
|
|
|
matrix:
|
2020-09-14 18:31:56 +00:00
|
|
|
include:
|
|
|
|
- go: "stable"
|
|
|
|
env: GOLINT=true
|
2018-05-15 21:13:11 +00:00
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
|
|
|
fast_finish: true
|
|
|
|
|
2020-09-14 18:31:56 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- if [ ! -z "${GOLINT}" ]; then go get -u golang.org/x/lint/golint; fi
|
2018-05-15 21:13:11 +00:00
|
|
|
|
|
|
|
script:
|
2020-09-14 18:31:56 +00:00
|
|
|
- go test --race ./...
|
2018-05-15 21:13:11 +00:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
|
2020-09-14 18:31:56 +00:00
|
|
|
- if [ ! -z "${GOLINT}" ]; then echo running golint; golint --set_exit_status ./...; else echo skipping golint; fi
|
2018-05-15 21:13:11 +00:00
|
|
|
- go vet ./...
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2020-09-14 18:31:56 +00:00
|
|
|
- windows
|
2018-05-15 21:13:11 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|