You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
269 B
13 lines
269 B
5 years ago
|
PACKAGES ?= $(shell go list ./...)
|
||
|
|
||
|
.PHONY: check
|
||
|
check: lint
|
||
|
go test
|
||
|
|
||
|
.PHONY: lint
|
||
|
lint:
|
||
|
@which golint > /dev/null; if [ $$? -ne 0 ]; then \
|
||
|
go get -u github.com/golang/lint/golint; \
|
||
|
fi
|
||
|
@for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
|