ipld-eth-state-snapshot/Makefile

24 lines
492 B
Makefile
Raw Normal View History

2023-08-27 09:49:46 +00:00
MOCKGEN ?= mockgen
MOCKS_DIR := $(CURDIR)/internal/mocks
2023-08-27 09:49:46 +00:00
mocks: $(MOCKS_DIR)/gen_indexer.go
.PHONY: mocks
2023-08-27 09:49:46 +00:00
$(MOCKS_DIR)/gen_indexer.go:
$(MOCKGEN) --package mocks --destination $@ \
--mock_names Indexer=MockgenIndexer \
github.com/cerc-io/plugeth-statediff/indexer Indexer
clean:
rm -f mocks/snapshot/publisher.go
build:
go fmt ./...
go build
2022-05-26 10:20:42 +00:00
test: mocks
go clean -testcache && go test -p 1 -v ./...
dbtest: mocks
go clean -testcache && TEST_WITH_DB=true go test -p 1 -v ./...