e2f7fa381b
* Utilize Ginkgo and replace `testing` library. * Add TOC to docs * Add Docker specific files * Remove -e * Update on-pr-manual.yml * Add depth * Add repositories * Remove $ from path * Update path for make * Setup Go and Ginkgo * Use go mod download * Use go install * Update on-pr-manual.yml * Use latest * Remove install of GINKGO * Add explicit gopath * Explicitly specify the gopath * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Use which ginkgo * Try with make now * Final working Make
36 lines
623 B
Makefile
36 lines
623 B
Makefile
BIN = $(GOPATH)/bin
|
|
BASE = $(GOPATH)/src/$(PACKAGE)
|
|
PKGS = go list ./... | grep -v "^vendor/"
|
|
|
|
# Tools
|
|
## Testing library
|
|
GINKGO = $(BIN)/ginkgo
|
|
$(BIN)/ginkgo:
|
|
go install github.com/onsi/ginkgo/ginkgo
|
|
|
|
|
|
.PHONY: installtools
|
|
installtools: | $(GINKGO)
|
|
echo "Installing tools"
|
|
|
|
.PHONY: test
|
|
test:
|
|
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 .
|