2016-02-26 00:52:50 +01:00
|
|
|
language: go
|
|
|
|
go:
|
2018-08-31 02:50:04 +02:00
|
|
|
- 1.11.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
|
2017-12-29 23:14:55 +01:00
|
|
|
- go test -v $(go list ./...)
|
|
|
|
- go vet $(go list ./...)
|
2017-12-23 23:36:02 +01:00
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
2017-12-29 23:14:55 +01:00
|
|
|
- (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
|
2018-01-21 18:35:15 +01:00
|
|
|
- go install github.com/chihaya/chihaya/cmd/chihaya
|
|
|
|
- chihaya --config=example_config.yaml --debug&
|
|
|
|
- pid=$!
|
2018-08-31 02:50:04 +02:00
|
|
|
- sleep 2 # wait for chihaya to start up (gross)
|
|
|
|
- chihaya e2e --debug
|
2018-01-21 18:35:15 +01:00
|
|
|
- kill $pid
|
2017-12-23 23:36:02 +01:00
|
|
|
# Using HEAD of dependencies
|
|
|
|
- install:
|
|
|
|
- go get -t ./...
|
|
|
|
- go get -u github.com/golang/lint/...
|
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
2017-12-29 23:14:55 +01:00
|
|
|
- go test -v $(go list ./...)
|
|
|
|
- go vet $(go list ./...)
|
2017-12-23 23:36:02 +01:00
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
2017-12-29 23:14:55 +01:00
|
|
|
- (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
|
2018-01-21 18:35:15 +01:00
|
|
|
- go install github.com/chihaya/chihaya/cmd/chihaya
|
|
|
|
- chihaya --config=example_config.yaml --debug&
|
|
|
|
- pid=$!
|
2018-08-31 02:50:04 +02:00
|
|
|
- sleep 2 # wait for chihaya to start up (gross)
|
|
|
|
- chihaya e2e --debug
|
2018-01-21 18:35:15 +01:00
|
|
|
- kill $pid
|
2017-12-23 23:36:02 +01:00
|
|
|
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:
|
2017-12-29 23:14:55 +01:00
|
|
|
- go test -v $(go list ./...)
|
|
|
|
- go vet $(go list ./...)
|
2017-12-23 23:36:02 +01:00
|
|
|
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(printf "")
|
2017-12-29 23:14:55 +01:00
|
|
|
- (for d in $(go list ./...); do diff <(golint $d) <(printf "") || exit 1; done)
|
2018-01-21 18:35:15 +01:00
|
|
|
- go install github.com/chihaya/chihaya/cmd/chihaya
|
|
|
|
- chihaya --config=example_config.yaml --debug&
|
|
|
|
- pid=$!
|
2018-08-31 02:50:04 +02:00
|
|
|
- sleep 2 # wait for chihaya to start up (gross)
|
|
|
|
- chihaya e2e --debug
|
2018-01-21 18:35:15 +01:00
|
|
|
- kill $pid
|
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
|