-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix travis configuration * run all tests inside a container
- Loading branch information
Showing
18 changed files
with
141 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.vimrc | ||
kafka.json | ||
*dump.rdb | ||
librdkafka.json | ||
rafka | ||
test/dump.rdb | ||
test/.bundle | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
branches: | ||
only: | ||
- master | ||
- debian/stretch | ||
language: go | ||
go: | ||
- 1.10.x | ||
- "1.11.x" | ||
services: | ||
- docker | ||
- docker | ||
before_install: | ||
- git clone https://github.com/skroutz/kafka-cluster-testbed.git && cd kafka-cluster-testbed | ||
&& docker-compose up --build -d && cd $TRAVIS_BUILD_DIR | ||
- wget -qO - http://packages.confluent.io/deb/3.3/archive.key | sudo apt-key add - | ||
- sudo add-apt-repository "deb [arch=amd64] http://packages.confluent.io/deb/4.1 stable | ||
main" | ||
- sudo apt-get -y update && sudo apt-get install -y librdkafka-dev | ||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
install: | ||
- dep ensure -v | ||
- cp test/kafka.test.json kafka.json | ||
- cd test && docker-compose up --build -d && cd $TRAVIS_BUILD_DIR | ||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
- dep ensure -v | ||
before_script: | ||
- git clone https://github.com/skroutz/kafka-cluster-testbed.git kafkaclustertestbed | ||
- cd kafkaclustertestbed | ||
- docker-compose up --no-start zoo1 zoo2 zoo3 kc1.docker kc2.docker | ||
- docker-compose start | ||
- cd $TRAVIS_BUILD_DIR | ||
script: | ||
- make | ||
- make test | ||
notifications: | ||
slack: | ||
secure: KDA5GK4A6P3rBWlS+UpU5jVTXKWlbljEB9cpdkX23geCPZXuhYKsr50wXPACN0cCLwH+v3LPyfBS7UGCP1I9OjK0/7ersOc+laQl9R75oNTxrlNgVsi9y23cNtBHmBpqFUAYNsXH7Why4+AdF6n/PnlOTFgUgiUwL5X8CIIYmRdOWCsQVCv7ZV1JzGUx7E3fXRr5QIWlqh7/xTGcQoyuKr11Rb/H4Q1hIA5OPgmecfjeMCsnXTv73OqFYoqEj5Kk2koRPFw7Z3G4QecIPdkhApA+M037gjZWCzXXiDysfgESDtE3XAgj4rMNnUMwTH8C68ftH1LtGd5eBwp98wmtj4mMJKue0RQrgxBqoxsyHpZJJ2dSERh78zy+G6guzm7EXkb8hy+OMJr1MZhWZ1FjLpZxQdKVF0cOgGvn+C0qgna8418kfZRBqosK2aHFPW2FjFMEOK0FkCNSE3g8uiobS0plZMTu7Cwu3uI95nmJ0x+05w7nFZM9CkPa2ZE1rcneKDJmNuoexP3TlCxX1FY8MXjC+XIVGGNSiA/tgRD+uivrZicY6NLMfy7WFLez1nBZPDGer0Uj1SCgw0M0wh3vKfwqZQuzhuHVgDNHKvPKdnswut3tuG7Mx83H9XNrm7OVCseDskFkRg+aUcquTWF2gPsJQW+FkvJ3gBUMOZqUaM4= |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,43 @@ | ||
.PHONY: install build test lint fmt clean | ||
.PHONY: install dep build test teste2e testunit lint fmt clean run-rafka run-rafka-local testunit-local teste2e-local | ||
|
||
install: fmt test | ||
default: fmt install test | ||
|
||
install: | ||
go install -v | ||
|
||
build: fmt test | ||
dep: | ||
dep ensure -v | ||
|
||
build: fmt | ||
go build -v | ||
|
||
test: | ||
testunit-local: | ||
go test -race | ||
|
||
teste2e-local: | ||
cd test && bundle install --frozen && ./end-to-end -v | ||
|
||
lint: | ||
golint | ||
|
||
fmt: | ||
! gofmt -d -e -s *.go 2>&1 | tee /dev/tty | read | ||
test -z `go fmt 2>&1` | ||
|
||
clean: | ||
go clean | ||
|
||
run-rafka-local: build | ||
./rafka -c test/librdkafka.test.json | ||
|
||
run-rafka: dep | ||
docker-compose -f test/docker-compose.yml up --no-start --build | ||
docker-compose -f test/docker-compose.yml start | ||
|
||
testunit: run-rafka | ||
docker-compose -f test/docker-compose.yml exec rafka make testunit-local | ||
|
||
teste2e: run-rafka | ||
docker-compose -f test/docker-compose.yml exec rafka make teste2e-local | ||
|
||
test: run-rafka | ||
docker-compose -f test/docker-compose.yml exec rafka make testunit-local teste2e-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.