forked from cerc-io/laconicd-deprecated
Upgrade geth and cleanup
This commit is contained in:
@@ -16,7 +16,7 @@ PACKAGES=$(shell go list ./... | grep -v '/vendor/')
|
||||
COMMIT_HASH := $(shell git rev-parse --short HEAD)
|
||||
BUILD_FLAGS = -tags netgo -ldflags "-X github.com/cosmos/ethermint/version.GitCommit=${COMMIT_HASH}"
|
||||
DOCKER_TAG = unstable
|
||||
DOCKER_IMAGE = tendermint/ethermint
|
||||
DOCKER_IMAGE = cosmos/ethermint
|
||||
ETHERMINT_DAEMON_BINARY = emintd
|
||||
ETHERMINT_CLI_BINARY = emintcli
|
||||
|
||||
@@ -43,8 +43,9 @@ clean:
|
||||
@rm -rf ./build ./vendor
|
||||
|
||||
update-tools:
|
||||
@echo "--> Updating golang dependencies"
|
||||
go get -u -v $(DEP) $(GOLINT) $(GOMETALINTER) $(UNCONVERT) $(INEFFASSIGN) $(MISSPELL) $(ERRCHECK) $(UNPARAM) $(GOCYCLO)
|
||||
@echo "--> Updating vendor dependencies"
|
||||
go get -u -v $(DEP) $(GOLINT) $(GOMETALINTER) $(UNCONVERT) $(INEFFASSIGN) $(MISSPELL) $(ERRCHECK) $(UNPARAM)
|
||||
|
||||
|
||||
############################
|
||||
### Tools / Dependencies ###
|
||||
@@ -62,7 +63,6 @@ INEFFASSIGN = github.com/gordonklaus/ineffassign
|
||||
MISSPELL = github.com/client9/misspell/cmd/misspell
|
||||
ERRCHECK = github.com/kisielk/errcheck
|
||||
UNPARAM = mvdan.cc/unparam
|
||||
GOCYCLO = github.com/alecthomas/gocyclo
|
||||
|
||||
DEP_CHECK := $(shell command -v dep 2> /dev/null)
|
||||
GOLINT_CHECK := $(shell command -v golint 2> /dev/null)
|
||||
@@ -72,7 +72,6 @@ INEFFASSIGN_CHECK := $(shell command -v ineffassign 2> /dev/null)
|
||||
MISSPELL_CHECK := $(shell command -v misspell 2> /dev/null)
|
||||
ERRCHECK_CHECK := $(shell command -v errcheck 2> /dev/null)
|
||||
UNPARAM_CHECK := $(shell command -v unparam 2> /dev/null)
|
||||
GOCYCLO_CHECK := $(shell command -v gocyclo 2> /dev/null)
|
||||
|
||||
tools:
|
||||
ifdef DEP_CHECK
|
||||
@@ -123,12 +122,6 @@ else
|
||||
@echo "--> Installing unparam"
|
||||
go get -v $(UNPARAM)
|
||||
endif
|
||||
ifdef GOCYCLO_CHECK
|
||||
@echo "goyclo is already installed. Run 'make update-tools' to update."
|
||||
else
|
||||
@echo "--> Installing goyclo"
|
||||
go get -v $(GOCYCLO)
|
||||
endif
|
||||
|
||||
deps:
|
||||
@rm -rf vendor/
|
||||
@@ -139,26 +132,20 @@ deps:
|
||||
### Testing / Misc. ###
|
||||
#######################
|
||||
|
||||
TEST_PACKAGES=$(shell go list ./... | grep -v github.com/cosmos/ethermint/cmd/test)
|
||||
|
||||
test: test-unit
|
||||
|
||||
test-unit:
|
||||
@go test -v $(TEST_PACKAGES)
|
||||
@go test -v --vet=off $(PACKAGES)
|
||||
|
||||
test-race:
|
||||
@go test -v -race $(TEST_PACKAGES)
|
||||
@go test -v --vet=off -race $(PACKAGES)
|
||||
|
||||
test-cli:
|
||||
@echo "NO CLI TESTS"
|
||||
|
||||
test-lint:
|
||||
@echo "--> Running gometalinter"
|
||||
@gometalinter.v2 --config=gometalinter.json ./...
|
||||
@!(gometalinter.v2 --disable-all --enable='errcheck' --vendor ./... | grep -v "client/")
|
||||
@find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s
|
||||
@dep status >/dev/null 2>&1
|
||||
@!(grep -n branch Gopkg.toml)
|
||||
@echo "--> Running gometalinter..."
|
||||
@gometalinter.v2 --config=gometalinter.json --exclude=vendor ./...
|
||||
|
||||
godocs:
|
||||
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/cosmos/ethermint"
|
||||
|
||||
Reference in New Issue
Block a user