update tests, helper methods, etc for changed interfaces linted and some tests updated... statediff tests failing on filesystem call locally undo changes to go.mod from rebase changed ref and repo to try old stack-orch with miner.etherbase arg turn off new tests yml for old tests with hack for old stack-orchestrator cicd cleanup to trigger PR and testing (#324) publish step using broken tests switched (#325) Publish with old tests and no vulcanize publish (#326) * publish step using broken tests switched * rebase inserted old vulcanize publish steps run tests in Jenkins CICD (#327) * run race tests in CICD * set HOME env for .ethereum mkdir permission denied * use same homeDir method as other places in code * unused variable in test removed * do NOT run race tests Unit test inconsistencies (#330) * run race tests in CICD * set HOME env for .ethereum mkdir permission denied * use same homeDir method as other places in code * unused variable in test removed * do NOT run race tests * add statediffing test to Jenkinsfile Add COPY support for inserting multiple rows in a single operation. (#328) * Add COPY support for inserting multiple rows in a single command. Fix CI tests by using specific version of Foundry (#333) * Fix CI tests by using specific version of Foundry --------- Co-authored-by: Michael Shaw <michael@abastionofsanity.com> Add timers/counters for LevelDB Get, Put, Has, and Delete. (#332) * Add timers/counters for LevelDB Get, Put, Has, and Delete. * Test for null metrics (the unit tests don't initialize them). Add timer and counter for batched write operations. (#337) * Add timer and counter for batched write operations. * Tweak comment
70 lines
1.9 KiB
Makefile
70 lines
1.9 KiB
Makefile
# This Makefile is meant to be used by people that do not usually work
|
|
# with Go source code. If you know what GOPATH is then you probably
|
|
# don't need to bother with make.
|
|
|
|
.PHONY: geth android ios evm all test clean
|
|
|
|
BIN = $(GOPATH)/bin
|
|
|
|
## Migration tool
|
|
GOOSE = $(BIN)/goose
|
|
$(BIN)/goose:
|
|
go get -u github.com/pressly/goose/cmd/goose
|
|
|
|
GOBIN = ./build/bin
|
|
GO ?= latest
|
|
GORUN = env GO111MODULE=on go run
|
|
|
|
#Database
|
|
HOST_NAME = localhost
|
|
PORT = 5432
|
|
USER = vdbm
|
|
PASSWORD = password
|
|
|
|
# Set env variable
|
|
# `PGPASSWORD` is used by `createdb` and `dropdb`
|
|
export PGPASSWORD=$(PASSWORD)
|
|
|
|
#Test
|
|
TEST_DB = vulcanize_public
|
|
TEST_CONNECT_STRING = postgresql://$(USER):$(PASSWORD)@$(HOST_NAME):$(PORT)/$(TEST_DB)?sslmode=disable
|
|
|
|
geth:
|
|
$(GORUN) build/ci.go install ./cmd/geth
|
|
@echo "Done building."
|
|
@echo "Run \"$(GOBIN)/geth\" to launch geth."
|
|
|
|
all:
|
|
$(GORUN) build/ci.go install
|
|
|
|
test: all
|
|
$(GORUN) build/ci.go test -v
|
|
|
|
lint: ## Run linters.
|
|
$(GORUN) build/ci.go lint
|
|
|
|
clean:
|
|
env GO111MODULE=on go clean -cache
|
|
rm -fr build/_workspace/pkg/ $(GOBIN)/*
|
|
|
|
# The devtools target installs tools required for 'go generate'.
|
|
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
|
|
|
|
devtools:
|
|
env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
|
|
env GOBIN= go install github.com/fjl/gencodec@latest
|
|
env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest
|
|
env GOBIN= go install ./cmd/abigen
|
|
@type "solc" 2> /dev/null || echo 'Please install solc'
|
|
@type "protoc" 2> /dev/null || echo 'Please install protoc'
|
|
|
|
.PHONY: statedifftest
|
|
statedifftest: | $(GOOSE)
|
|
GO111MODULE=on go get github.com/stretchr/testify/assert@v1.7.0
|
|
GO111MODULE=on MODE=statediff go test -p 1 ./statediff/... -v
|
|
|
|
.PHONY: statediff_filewriting_test
|
|
statediff_filetest: | $(GOOSE)
|
|
GO111MODULE=on go get github.com/stretchr/testify/assert@v1.7.0
|
|
GO111MODULE=on MODE=statediff STATEDIFF_DB=file go test -p 1 ./statediff/... -v
|