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

9 years ago
8 years ago
8 years ago
9 years ago
8 years ago
9 years ago
9 years ago
9 years ago
8 years ago
9 years ago
8 years ago
  1. .PHONY: all build test fmt lint get_deps
  2. all: protoc install test
  3. NOVENDOR = go list github.com/tendermint/abci/... | grep -v /vendor/
  4. protoc:
  5. @ protoc --go_out=plugins=grpc:. types/*.proto
  6. install:
  7. @ go install github.com/tendermint/abci/cmd/...
  8. build:
  9. @ go build -i github.com/tendermint/abci/cmd/...
  10. test:
  11. @ go test `${NOVENDOR}`
  12. @ bash tests/test.sh
  13. fmt:
  14. @ go fmt ./...
  15. lint:
  16. @ go get -u github.com/golang/lint/golint
  17. @ for file in $$(find "." -name '*.go' | grep -v '/vendor/' | grep -v '\.pb\.go'); do \
  18. golint -set_exit_status $${file}; \
  19. done;
  20. test_integrations: get_vendor_deps install test
  21. get_deps:
  22. @ go get -d `${NOVENDOR}`
  23. get_vendor_deps:
  24. @ go get github.com/Masterminds/glide
  25. @ glide install