2015-08-06 18:26:02 +00:00
|
|
|
dependencies:
|
2015-08-10 16:22:15 +00:00
|
|
|
post:
|
|
|
|
# install golint
|
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
# install gox
|
|
|
|
- go get -u -f github.com/mitchellh/gox
|
|
|
|
# install binaries
|
|
|
|
- go install ./...
|
|
|
|
|
2015-08-04 14:58:32 +00:00
|
|
|
test:
|
2015-08-10 16:22:15 +00:00
|
|
|
pre:
|
|
|
|
# Go fmt should pass all files
|
|
|
|
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
|
|
|
|
- go vet ./...
|
|
|
|
- golint .
|
|
|
|
- golint testutil/...
|
|
|
|
- golint cmd/...
|
|
|
|
override:
|
|
|
|
- make test-short
|
|
|
|
post:
|
|
|
|
- gox -os="linux" -arch="386 amd64" ./...
|
|
|
|
- mv telegraf* $CIRCLE_ARTIFACTS
|