d38a7017d1
Builds failing on HEAD do not fail CI/CD. Instead, this should be used as a canary for breaking changes upstream.
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
language: go
|
|
go:
|
|
- 1.9.x
|
|
sudo: false
|
|
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)
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- irc.freenode.net#chihaya
|
|
use_notice: true
|
|
skip_join: true
|
|
on_success: always
|
|
on_failure: always
|
|
email: false
|