2016-02-26 00:52:50 +01:00
|
|
|
language: go
|
|
|
|
go:
|
2016-08-17 04:26:19 +02:00
|
|
|
- 1.7
|
2016-02-26 00:52:50 +01:00
|
|
|
sudo: false
|
2016-03-03 01:24:04 +01:00
|
|
|
install:
|
2016-03-30 04:56:01 +02:00
|
|
|
- go get -t ./...
|
2016-05-20 19:12:51 +02:00
|
|
|
- go get -u github.com/golang/lint/golint
|
|
|
|
- go get -u golang.org/x/tools/cmd/goimports
|
2016-03-03 01:24:04 +01:00
|
|
|
script:
|
2016-03-30 04:56:01 +02:00
|
|
|
- go test -v $(go list ./... | grep -v /vendor/)
|
2016-05-20 19:12:51 +02:00
|
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
2016-08-17 05:37:40 +02:00
|
|
|
#- for d in $(go list ./... | grep -v /vendor/); do diff <(golint $d) <(printf ""); done
|
2016-02-26 00:52:50 +01:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
2016-03-30 04:56:01 +02:00
|
|
|
- irc.freenode.net#chihaya
|
2016-02-26 00:52:50 +01:00
|
|
|
use_notice: true
|
|
|
|
skip_join: true
|
|
|
|
on_success: always
|
|
|
|
on_failure: always
|
|
|
|
email: false
|