mirror of
https://github.com/pushbits/server.git
synced 2025-08-03 08:39:09 +02:00
17 lines
344 B
Makefile
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
|