Adding Kafka docker container and utilizing it in unit tests

This commit is contained in:
Cameron Sparr
2015-08-04 08:58:32 -06:00
parent 6b820d91ae
commit fdd2401f7b
5 changed files with 40 additions and 17 deletions

View File

@@ -11,9 +11,13 @@ test:
- go vet ./...
# Verify that all files are properly go formatted
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
# Only docker-compose up kafka, the other services are already running
# see: https://circleci.com/docs/environment#databases
# - docker-compose up -d kafka
override:
# Enforce that testutil, cmd, and main directory are fully linted
- golint .
- golint testutil/...
- golint cmd/...
# TODO run unit tests
# - go test -short ./...