2017-07-23 12:24:45 +00:00
|
|
|
language: go
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
go:
|
2019-01-27 20:07:57 +00:00
|
|
|
- "1.11"
|
2017-07-23 12:24:45 +00:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
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-01-27 20:07:57 +00:00
|
|
|
- diff <(goimports -d .) <(printf "")
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|