"make fresh" when things are getting stale

This commit is contained in:
Ethan Frey
2017-06-19 15:13:46 +02:00
parent 24bd0f5ed6
commit 06c854f846
2 changed files with 12 additions and 4 deletions
+1
View File
@@ -29,6 +29,7 @@ ENHANCEMENTS:
- commands return error code (1) on failure for easier script testing
- add `reset_all` to basecli, and never delete keys on `init`
- new shutil based unit tests, with better coverage of the cli actions
- just `make fresh` when things are getting stale ;)
BUG FIXES:
- no longer panics on missing app_options in genesis (thanks, anton)
+11 -4
View File
@@ -1,6 +1,5 @@
GOTOOLS = github.com/mitchellh/gox \
github.com/Masterminds/glide
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
all: get_vendor_deps install test
@@ -18,7 +17,7 @@ dist:
test: test_unit test_cli
test_unit:
go test $(PACKAGES)
go test `glide novendor`
#go run tests/tendermint/*.go
test_cli: tests/cli/shunit2
@@ -43,6 +42,14 @@ tools:
go get -u -v $(GOTOOLS)
clean:
@rm -f ./basecoin
# maybe cleaning up cache and vendor is overkill, but sometimes
# you don't get the most recent versions with lots of branches, changes, rebases...
@rm -rf ~/.glide/cache/src/https-github.com-tendermint-*
@rm -rf ./vendor
@rm -f $GOPATH/bin/{basecoin,basecli,counter,countercli}
.PHONY: all build install test test_cli test_unit get_vendor_deps build-docker clean
# when your repo is getting a little stale... just make fresh
fresh: clean get_vendor_deps install
@if [[ `git status -s` ]]; then echo; echo "Warning: uncommited changes"; git status -s; fi
.PHONY: all build install test test_cli test_unit get_vendor_deps build-docker clean fresh