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.

53 lines
1.2 KiB

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