diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-07-16 00:12:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@cobinhood.com> | 2018-07-16 11:06:14 +0800 |
commit | aed24cf020bd11c3b20a7011b96c02e41894fa32 (patch) | |
tree | 720bc1542dd1edb7308c124a5265e21b3c01d08b /GNUmakefile | |
download | tangerine-consensus-aed24cf020bd11c3b20a7011b96c02e41894fa32.tar.gz tangerine-consensus-aed24cf020bd11c3b20a7011b96c02e41894fa32.tar.zst tangerine-consensus-aed24cf020bd11c3b20a7011b96c02e41894fa32.zip |
Initial implementation of DEXON consensus algorithm
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..09d680a --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,30 @@ +# Makefile for Cobinhood Backend + +DEXON_CONSENSUS_CORE=github.com/dexon-foundation/dexon-consensus-core + +.PHONY: clean default + +default: all + +all: dexcon-simulation + +pre-submit: lint + +dexcon-simulation: + go install $(DEXON_CONSENSUS_CORE)/cmd/dexcon-simulation + +pre-submit: lint test vet + +lint: + @$(GOPATH)/bin/golint -set_exit_status `go list ./... | grep -v 'vendor'` + +vet: + @go vet `go list ./... | grep -v 'vendor'` + +test: + @for pkg in `go list ./... | grep -v 'vendor'`; do \ + if ! go test $$pkg; then \ + echo 'Some test failed, abort'; \ + exit 1; \ + fi; \ + done |