storj/Makefile
JT Olds dd2fbb5069 don't require shallow clones of old commits (#38)
* don't require shallow clones of old commits

doesn't look like github allows it. hints here:
https://stackoverflow.com/questions/31278902/how-to-shallow-clone-a-specific-commit-with-depth-1

* don't try to update submodules
2018-05-09 16:21:53 +03:00

34 lines
638 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 github.com/golang/protobuf/protoc-gen-go
go get github.com/alecthomas/gometalinter
gometalinter --install --force
test: lint
go install -v ./...
go test ./...
@echo done