Fix glide, improve Makefile

This commit is contained in:
Jae Kwon
2016-06-11 20:14:44 -07:00
parent 16987fe143
commit c126ccd744
2 changed files with 42 additions and 20 deletions
+9 -7
View File
@@ -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/...