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