2016-02-26 00:52:50 +01:00
|
|
|
language: go
|
|
|
|
go:
|
2017-12-26 20:23:24 +01:00
|
|
|
- 1.9.x
|
2016-02-26 00:52:50 +01:00
|
|
|
sudo: false
|
2017-12-23 23:36:02 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Using vendored dependencies
|
|
|
|
- install:
|
|
|
|
- go get -u github.com/golang/dep/...
|
|
|
|
- go get -u github.com/golang/lint/...
|
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
|
|
|
- dep ensure
|
|
|
|
- go test -v $(go list ./... | grep -v /vendor/)
|
|
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
|
|
|
- (for d in $(go list ./... | grep -v /vendor/); do diff <(golint $d) <(printf "") || exit 1; done)
|
|
|
|
# Using HEAD of dependencies
|
|
|
|
- install:
|
|
|
|
- go get -t ./...
|
|
|
|
- go get -u github.com/golang/lint/...
|
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
|
|
|
- go test -v $(go list ./... | grep -v /vendor/)
|
|
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
|
|
|
- (for d in $(go list ./... | grep -v /vendor/); do diff <(golint $d) <(printf "") || exit 1; done)
|
|
|
|
allow_failures:
|
|
|
|
# Using HEAD of dependencies
|
|
|
|
- install:
|
|
|
|
- go get -t ./...
|
|
|
|
- go get -u github.com/golang/lint/...
|
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
|
|
|
- go test -v $(go list ./... | grep -v /vendor/)
|
|
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
|
|
|
- (for d in $(go list ./... | grep -v /vendor/); do diff <(golint $d) <(printf "") || exit 1; 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
|