ipld-eth-beacon-indexer/Makefile

37 lines
649 B
Makefile
Raw Normal View History

2022-04-21 22:35:13 +00:00
GOPATH = $(go env GOPATH)
2022-04-21 21:35:46 +00:00
BIN = $(GOPATH)/bin
BASE = $(GOPATH)/src/$(PACKAGE)
PKGS = go list ./... | grep -v "^vendor/"
# Tools
## Testing library
GINKGO = $(BIN)/ginkgo
$(BIN)/ginkgo:
2022-04-21 22:14:43 +00:00
go install github.com/onsi/ginkgo/ginkgo
2022-04-21 21:35:46 +00:00
.PHONY: installtools
installtools: | $(GINKGO)
echo "Installing tools"
.PHONY: test
2022-04-21 22:30:54 +00:00
test:
2022-04-21 21:35:46 +00:00
go vet ./...
go fmt ./...
$(GINKGO) -r
#.PHONY: integrationtest
#integrationtest: | $(GINKGO) $(GOOSE)
# go vet ./...
# go fmt ./...
# $(GINKGO) -r test/ -v
.PHONY: build
build:
go fmt ./...
GO111MODULE=on go build
## Build docker image
.PHONY: docker-build
docker-build:
docker build -t vulcanize/ipld-ethcl-indexer .