cadvisor/vendor/github.com/Shopify/sarama/Makefile
Vishnu kannan de4af1288b moving deps to vendor subdirectory
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 12:19:43 -07:00

25 lines
507 B
Makefile

default: fmt vet errcheck test
test:
go test -v -timeout 60s -race ./...
vet:
go vet ./...
errcheck:
@if go version | grep -q go1.5; then errcheck github.com/Shopify/sarama/...; fi
fmt:
@if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi
install_dependencies: install_errcheck install_go_vet get
install_errcheck:
@if go version | grep -q go1.5; then go get github.com/kisielk/errcheck; fi
install_go_vet:
go get golang.org/x/tools/cmd/vet
get:
go get -t