2015-08-04 22:58:32 +08:00
|
|
|
dependencies:
|
|
|
|
|
post:
|
|
|
|
|
# install golint
|
|
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
|
# install binaries
|
|
|
|
|
- go install ./...
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
pre:
|
|
|
|
|
# Vet go code for any potential errors
|
|
|
|
|
- go vet ./...
|
2015-08-05 06:12:48 +08:00
|
|
|
# Verify that all files are properly go formatted
|
|
|
|
|
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
|
2015-08-04 22:58:32 +08:00
|
|
|
# Only docker-compose up kafka, the other services are already running
|
|
|
|
|
# see: https://circleci.com/docs/environment#databases
|
|
|
|
|
# - docker-compose up -d kafka
|
2015-08-04 22:58:32 +08:00
|
|
|
override:
|
|
|
|
|
# Enforce that testutil, cmd, and main directory are fully linted
|
|
|
|
|
- golint .
|
|
|
|
|
- golint testutil/...
|
|
|
|
|
- golint cmd/...
|
2015-08-05 04:52:44 +08:00
|
|
|
# Run short unit tests
|
2015-08-06 02:49:58 +08:00
|
|
|
- make test-short
|
2015-08-05 04:52:44 +08:00
|
|
|
# TODO run full unit test suite
|