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.
 
 
 
 
 
 

36 lines
732 B

.PHONY: all build test fmt lint get_deps
all: protoc install test
NOVENDOR = go list github.com/tendermint/abci/... | grep -v /vendor/
protoc:
@ protoc --go_out=plugins=grpc:. types/*.proto
install:
@ go install github.com/tendermint/abci/cmd/...
build:
@ go build -i github.com/tendermint/abci/cmd/...
test:
@ go test `${NOVENDOR}`
@ bash tests/test.sh
fmt:
@ go fmt ./...
lint:
@ go get -u github.com/golang/lint/golint
@ for file in $$(find "." -name '*.go' | grep -v '/vendor/' | grep -v '\.pb\.go'); do \
golint -set_exit_status $${file}; \
done;
test_integrations: get_vendor_deps install test
get_deps:
@ go get -d `${NOVENDOR}`
get_vendor_deps:
@ go get github.com/Masterminds/glide
@ glide install