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:
|
2018-10-23 19:48:34 +02:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2017-12-23 23:36:02 +01:00
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
2019-02-13 02:26:26 +01:00
|
|
|
- export GO111MODULE=on
|
|
|
|
- go mod download
|
2018-12-29 22:50:54 +01:00
|
|
|
- go test -v -race $(go list ./...)
|
2017-12-29 23:14:55 +01:00
|
|
|
- go vet $(go list ./...)
|
2018-10-23 20:06:52 +02:00
|
|
|
- diff <(goimports -local github.com/chihaya/chihaya -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 ./...
|
2018-10-23 19:48:34 +02:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2017-12-23 23:36:02 +01:00
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
2018-12-29 22:50:54 +01:00
|
|
|
- go test -v -race $(go list ./...)
|
2017-12-29 23:14:55 +01:00
|
|
|
- go vet $(go list ./...)
|
2018-10-23 20:06:52 +02:00
|
|
|
- diff <(goimports -local github.com/chihaya/chihaya -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 ./...
|
2018-10-23 19:48:34 +02:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2017-12-23 23:36:02 +01:00
|
|
|
- go get -u golang.org/x/tools/cmd/...
|
|
|
|
script:
|
2018-12-29 22:50:54 +01:00
|
|
|
- go test -v -race $(go list ./...)
|
2017-12-29 23:14:55 +01:00
|
|
|
- go vet $(go list ./...)
|
2018-10-23 20:06:52 +02:00
|
|
|
- diff <(goimports -local github.com/chihaya/chihaya -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
|