2017-07-23 12:24:45 +00:00
|
|
|
language: go
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
go:
|
2019-04-24 10:32:52 +00:00
|
|
|
- "1.11.x"
|
2017-07-23 12:24:45 +00:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2019-04-24 10:32:52 +00:00
|
|
|
- windows
|
2017-07-23 12:24:45 +00:00
|
|
|
|
2019-01-27 20:07:57 +00:00
|
|
|
before_install:
|
2017-07-23 12:24:45 +00:00
|
|
|
- go version
|
2019-01-27 20:07:57 +00:00
|
|
|
- export GO111MODULE=on
|
2017-07-23 12:24:45 +00:00
|
|
|
- go get golang.org/x/tools/cmd/goimports
|
2019-01-27 20:07:57 +00:00
|
|
|
|
|
|
|
install:
|
2017-07-23 12:24:45 +00:00
|
|
|
- go build
|
|
|
|
|
|
|
|
script:
|
2018-08-01 17:43:44 +00:00
|
|
|
- ./.travis.sh
|
2019-04-24 10:32:52 +00:00
|
|
|
# goimports on windows gives false positives
|
|
|
|
- if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then diff <(goimports -d .) <(printf ""); fi
|
2019-01-27 20:07:57 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|