mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 06:54:41 +00:00
Fix glide, improve Makefile
This commit is contained in:
@@ -7,6 +7,7 @@ define NEWLINE
|
||||
|
||||
|
||||
endef
|
||||
NOVENDOR = go list github.com/tendermint/tendermint/... | grep -v /vendor/
|
||||
|
||||
install: get_deps
|
||||
go install github.com/tendermint/tendermint/cmd/tendermint
|
||||
@@ -18,25 +19,26 @@ build_race:
|
||||
go build -race -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint
|
||||
|
||||
test: build
|
||||
go test github.com/tendermint/tendermint/...
|
||||
go test `${NOVENDOR}`
|
||||
|
||||
test100: build
|
||||
for i in {1..100}; do make test; done
|
||||
|
||||
test_novendor: build
|
||||
go test $$(glide novendor)
|
||||
|
||||
draw_deps:
|
||||
# requires brew install graphviz
|
||||
go get github.com/hirokidaichi/goviz
|
||||
goviz -i github.com/tendermint/tendermint/cmd/tendermint | dot -Tpng -o huge.png
|
||||
|
||||
list_deps:
|
||||
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | sort | uniq | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
|
||||
go list -f '{{join .Deps "\n"}}' github.com/tendermint/tendermint/... | \
|
||||
grep -v /vendor/ | sort | uniq | \
|
||||
xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
|
||||
|
||||
get_deps:
|
||||
go get -d github.com/tendermint/tendermint/...
|
||||
go list -f '{{join .TestImports "\n"}}' github.com/tendermint/tendermint/... | sort | uniq | xargs go get
|
||||
go get -d `${NOVENDOR}`
|
||||
go list -f '{{join .TestImports "\n"}}' github.com/tendermint/tendermint/... | \
|
||||
grep -v /vendor/ | sort | uniq | \
|
||||
xargs go get
|
||||
|
||||
update_deps:
|
||||
go get -d -u github.com/tendermint/tendermint/...
|
||||
|
||||
Reference in New Issue
Block a user