storj/Makefile
JT Olds 2ef8e581b2 fix travis, and get a clean lint (#32)
* fix travis

* lint fixes

* travis: enable tests

* fix some tests, disable a broken eestream test for now
2018-05-08 18:02:01 -04:00

33 lines
632 B
Makefile

.PHONY: test lint proto check-copyrights build-dev-deps
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: lint
go install -v ./...
go test ./...