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.

42 lines
982 B

9 years ago
8 years ago
8 years ago
9 years ago
8 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. install-protoc:
  5. # Download: https://github.com/google/protobuf/releases
  6. go get github.com/golang/protobuf/protoc-gen-go
  7. protoc:
  8. @ protoc --go_out=plugins=grpc:. types/*.proto
  9. install:
  10. @ go install github.com/tendermint/abci/cmd/...
  11. build:
  12. @ go build -i github.com/tendermint/abci/cmd/...
  13. # test.sh requires that we run the installed cmds, must not be out of date
  14. test: install
  15. find . -name test.sock -exec rm {} \;
  16. @ go test -p 1 `${NOVENDOR}`
  17. @ bash tests/test.sh
  18. fmt:
  19. @ go fmt ./...
  20. lint:
  21. @ go get -u github.com/golang/lint/golint
  22. @ for file in $$(find "." -name '*.go' | grep -v '/vendor/' | grep -v '\.pb\.go'); do \
  23. golint -set_exit_status $${file}; \
  24. done;
  25. test_integrations: get_vendor_deps install test
  26. get_deps:
  27. @ go get -d `${NOVENDOR}`
  28. get_vendor_deps:
  29. @ go get github.com/Masterminds/glide
  30. @ glide install