Makefile 425 B

123456789101112131415161718192021222324
  1. default: fmt vet errcheck test
  2. test:
  3. go test -v -timeout 60s -race ./...
  4. vet:
  5. go vet ./...
  6. errcheck:
  7. errcheck github.com/Shopify/sarama/...
  8. fmt:
  9. @if [ -n "$$(go fmt ./...)" ]; then echo 'Please run go fmt on your code.' && exit 1; fi
  10. install_dependencies: install_errcheck install_go_vet get
  11. install_errcheck:
  12. go get github.com/kisielk/errcheck
  13. install_go_vet:
  14. go get golang.org/x/tools/cmd/vet
  15. get:
  16. go get -t