2023-01-14 10:12:34 +01:00
SHELL := /bin/bash
2023-01-12 11:31:29 +01:00
BIN := cic-chain-events
.PHONY : build
build :
CGO_ENABLED = 1 go build -v -ldflags= "-s -w" -o ${ BIN } cmd/*.go
run :
CGO_ENABLED = 1 go run -ldflags= "-s -w" cmd/*.go
mod :
go mod tidy
go mod verify
2023-01-14 10:20:16 +01:00
test-pkg :
2023-01-14 11:17:34 +01:00
TEST_GRAPHQL_ENDPOINT = https://rpc.alfajores.celo.grassecon.net/graphql go test -v -covermode atomic -coverprofile= covprofile ./pkg/...
2023-01-19 09:42:59 +01:00
bench-pkg :
TEST_RPC_ENDPOINT = https://rpc.alfajores.celo.grassecon.net TEST_GRAPHQL_ENDPOINT = https://rpc.alfajores.celo.grassecon.net/graphql go test -v -bench= . -run= ^Benchmark ./pkg/...
2023-01-14 11:17:34 +01:00
migrate :
tern migrate -c migrations/tern.conf
docker-clean :
docker-compose down
docker volume rm cic-chain-events_cic-indexer-pg cic-chain-events_cic-indexer-nats