36 lines
620 B
Makefile
36 lines
620 B
Makefile
.PHONY: test lint
|
|
|
|
lint: check-copyrights
|
|
@echo "Running ${@}"
|
|
@gometalinter \
|
|
--deadline=60s \
|
|
--disable-all \
|
|
--enable=golint \
|
|
--enable=goimports \
|
|
--enable=vet \
|
|
--enable=deadcode \
|
|
--enable=goconst \
|
|
--exclude=.*\.pb\.go \
|
|
--exclude=.*_test.go \
|
|
./...
|
|
|
|
check-copyrights:
|
|
@echo "Running ${@}"
|
|
@./scripts/check-for-header.sh
|
|
|
|
|
|
proto:
|
|
@echo "Running ${@}"
|
|
./scripts/build-protos.sh
|
|
|
|
|
|
build-dev-deps:
|
|
go get -u golang.org/x/vgo
|
|
vgo install ./...
|
|
go get -u github.com/golang/protobuf/protoc-gen-go
|
|
go get -u github.com/alecthomas/gometalinter
|
|
gometalinter --install --force
|
|
|
|
test:
|
|
go test -v ./...
|