ipld-eth-state-snapshot/Makefile

23 lines
449 B
Makefile
Raw Normal View History

MOCKS_DIR = $(CURDIR)/mocks
mockgen_cmd=mockgen
2022-05-26 10:20:42 +00:00
.PHONY: mocks test
mocks: mocks/snapshot/publisher.go
mocks/snapshot/publisher.go: pkg/types/publisher.go
$(mockgen_cmd) -package snapshot_mock -destination $@ -source $< Publisher Tx
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 ./...