tracker/.travis.yml

115 lines
4.2 KiB
YAML
Raw Normal View History

2016-02-26 00:52:50 +01:00
language: go
go:
2019-10-12 04:59:19 +02:00
- 1.13.x
2016-02-26 00:52:50 +01:00
sudo: false
services:
- redis-server
matrix:
include:
# Using vendored dependencies
- install:
2018-10-23 19:48:34 +02:00
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
- go get gopkg.in/mikefarah/yq.v2
script:
- go mod download
2018-12-29 22:50:54 +01:00
- go test -v -race $(go list ./...)
- 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 "")
- (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
# Run e2e test with example config.
2018-01-21 18:35:15 +01:00
- chihaya --config=example_config.yaml --debug&
- pid=$!
- sleep 2 # wait for chihaya to start up (gross)
- chihaya e2e --debug
2018-01-21 18:35:15 +01:00
- kill $pid
# Run e2e test with redis.
- |
cat << EOF | yq.v2 w -s - example_config.yaml | yq.v2 d - chihaya.storage.config.shard_count >> redis_config.yaml
chihaya.storage.name: redis
chihaya.storage.config.redis_broker: "redis://localhost:6379/0"
chihaya.storage.config.redis_read_timeout: 15s
chihaya.storage.config.redis_write_timeout: 15s
chihaya.storage.config.redis_connect_timeout: 15s
EOF
- chihaya --config=redis_config.yaml --debug&
- pid=$!
- sleep 2 # wait for chihaya to start up (gross)
- chihaya e2e --debug
- kill $pid
# Using HEAD of dependencies
- install:
- go get -t -u ./...
2018-10-23 19:48:34 +02:00
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
- go get gopkg.in/mikefarah/yq.v2
script:
2018-12-29 22:50:54 +01:00
- go test -v -race $(go list ./...)
- 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 "")
- (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
# Run e2e test with example config.
2018-01-21 18:35:15 +01:00
- chihaya --config=example_config.yaml --debug&
- pid=$!
- sleep 2 # wait for chihaya to start up (gross)
- chihaya e2e --debug
- kill $pid
# Run e2e test with redis.
- |
cat << EOF | yq.v2 w -s - example_config.yaml | yq.v2 d - chihaya.storage.config.shard_count >> redis_config.yaml
chihaya.storage.name: redis
chihaya.storage.config.redis_broker: "redis://localhost:6379/0"
chihaya.storage.config.redis_read_timeout: 15s
chihaya.storage.config.redis_write_timeout: 15s
chihaya.storage.config.redis_connect_timeout: 15s
EOF
- chihaya --config=redis_config.yaml --debug&
- pid=$!
- sleep 2 # wait for chihaya to start up (gross)
- chihaya e2e --debug
2018-01-21 18:35:15 +01:00
- kill $pid
allow_failures:
# Using HEAD of dependencies
- install:
- go get -t -u ./...
2018-10-23 19:48:34 +02:00
- go get -u golang.org/x/lint/golint
- go get -u golang.org/x/tools/cmd/...
- go get gopkg.in/mikefarah/yq.v2
script:
2018-12-29 22:50:54 +01:00
- go test -v -race $(go list ./...)
- 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 "")
- (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
# Run e2e test with example config.
2018-01-21 18:35:15 +01:00
- chihaya --config=example_config.yaml --debug&
- pid=$!
- sleep 2 # wait for chihaya to start up (gross)
- chihaya e2e --debug
2018-01-21 18:35:15 +01:00
- kill $pid
# Run e2e test with redis.
- |
cat << EOF | yq.v2 w -s - example_config.yaml | yq.v2 d - chihaya.storage.config.shard_count >> redis_config.yaml
chihaya.storage.name: redis
chihaya.storage.config.redis_broker: "redis://localhost:6379/0"
chihaya.storage.config.redis_read_timeout: 15s
chihaya.storage.config.redis_write_timeout: 15s
chihaya.storage.config.redis_connect_timeout: 15s
EOF
- chihaya --config=redis_config.yaml --debug&
- pid=$!
- sleep 2 # wait for chihaya to start up (gross)
- chihaya e2e --debug
- kill $pid
2016-02-26 00:52:50 +01:00
notifications:
irc:
channels:
- 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