mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 10:32:05 +00:00
Add a godoc reference to delegate indexing and references to that service, thus keeping our library and usages upto date, instead of relying on generated markdown that goes stale especially for changing API signatures, and becomes tedious where someone has to remember to always regenerate the README markdown and then commit it. Fixes #24
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
.PHONEY: all test install get_vendor_deps ensure_tools codegen wordlist
|
|
|
|
GOTOOLS = \
|
|
github.com/Masterminds/glide \
|
|
github.com/jteeuwen/go-bindata/go-bindata
|
|
REPO:=github.com/tendermint/go-crypto
|
|
|
|
all: get_vendor_deps install test
|
|
|
|
install:
|
|
go install ./cmd/keys
|
|
|
|
test: test_unit test_cli
|
|
|
|
test_unit:
|
|
go test `glide novendor`
|
|
#go run tests/tendermint/*.go
|
|
|
|
test_cli: tests/shunit2
|
|
# sudo apt-get install jq
|
|
@./tests/keys.sh
|
|
|
|
tests/shunit2:
|
|
wget "https://raw.githubusercontent.com/kward/shunit2/master/source/2.1/src/shunit2" \
|
|
-q -O tests/shunit2
|
|
|
|
get_vendor_deps: ensure_tools
|
|
@rm -rf vendor/
|
|
@echo "--> Running glide install"
|
|
@glide install
|
|
|
|
ensure_tools:
|
|
go get $(GOTOOLS)
|
|
|
|
wordlist:
|
|
go-bindata -ignore ".*\.go" -o keys/wordlist/wordlist.go -pkg "wordlist" keys/wordlist/...
|
|
|
|
prepgen: install
|
|
go install ./vendor/github.com/btcsuite/btcutil/base58
|
|
go install ./vendor/github.com/stretchr/testify/assert
|
|
go install ./vendor/github.com/stretchr/testify/require
|
|
go install ./vendor/golang.org/x/crypto/bcrypt
|
|
|
|
codegen:
|
|
@echo "--> regenerating all interface wrappers"
|
|
@gen
|
|
@echo "Done!"
|