ipld-eth-beacon-indexer/Makefile

36 lines
635 B
Makefile
Raw Normal View History

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
test: | $(GINKGO)
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 .