storj/Makefile
Dennis Coyle bb8d4f8d22 cleanup
2018-04-25 10:55:26 -04:00

34 lines
573 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 github.com/golang/protobuf/protoc-gen-go
go get -u github.com/alecthomas/gometalinter
gometalinter --install --force
test:
go test -v ./...