pushbits/Makefile
2020-07-26 15:27:36 +02:00

17 lines
344 B
Makefile

.PHONY: test
test:
stdout=$$(gofmt -l . 2>&1); \
if [ "$$stdout" ]; then \
exit 1; \
fi
gocyclo -over 10 $(shell find . -iname '*.go' -type f)
go test -v -cover ./...
stdout=$$(golint ./... 2>&1); \
if [ "$$stdout" ]; then \
exit 1; \
fi
.PHONY: tools
tools:
go get -u github.com/fzipp/gocyclo
go get -u golang.org/x/lint/golint