Roy Crihfield
00141776bf
* Refactors to replace most of the code with the statediff plugin. * Adds basic CI test workflows for Gitea * Refactors fixtures to use https://git.vdb.to/cerc-io/eth-testing * Renames env vars for consistency with flags and other services: - LOGRUS_{LEVEL,FILE} => LOG_LEVEL, etc. - LVL_DB_PATH => LEVELDB_PATH - ANCIENT_DB_PATH => LEVELDB_ANCIENT - These will need to be updated wherever they are used Reviewed-on: #1
14 lines
338 B
Makefile
14 lines
338 B
Makefile
MOCKGEN ?= mockgen
|
|
MOCKS_DIR := $(CURDIR)/internal/mocks
|
|
|
|
mocks: $(MOCKS_DIR)/gen_indexer.go
|
|
.PHONY: mocks
|
|
|
|
$(MOCKS_DIR)/gen_indexer.go:
|
|
$(MOCKGEN) --package mocks --destination $@ \
|
|
--mock_names Indexer=MockgenIndexer \
|
|
github.com/cerc-io/plugeth-statediff/indexer Indexer
|
|
|
|
test: mocks
|
|
go clean -testcache && go test -p 1 -v ./...
|