2022-01-20 13:22:01 +00:00
|
|
|
BIN = $(GOPATH)/bin
|
|
|
|
BASE = $(GOPATH)/src/$(PACKAGE)
|
|
|
|
PKGS = go list ./... | grep -v "^vendor/"
|
|
|
|
|
|
|
|
# Tools
|
|
|
|
## Testing library
|
|
|
|
GINKGO = $(BIN)/ginkgo
|
|
|
|
$(BIN)/ginkgo:
|
2022-03-02 23:09:01 +00:00
|
|
|
go install github.com/onsi/ginkgo/ginkgo
|
2022-01-20 13:22:01 +00:00
|
|
|
|
|
|
|
.PHONY: integrationtest
|
|
|
|
integrationtest: | $(GINKGO) $(GOOSE)
|
|
|
|
go vet ./...
|
|
|
|
go fmt ./...
|
|
|
|
$(GINKGO) -r test/ -v
|
|
|
|
|
2022-05-06 11:21:11 +00:00
|
|
|
.PHONY: test
|
|
|
|
test: | $(GINKGO) $(GOOSE)
|
2022-03-03 21:26:41 +00:00
|
|
|
go vet ./...
|
|
|
|
go fmt ./...
|
2022-06-01 05:59:53 +00:00
|
|
|
$(GINKGO) -r pkg/validator/ validator_test/ -v
|
2022-03-03 21:26:41 +00:00
|
|
|
|
2022-05-17 04:29:23 +00:00
|
|
|
build:
|
|
|
|
go fmt ./...
|
|
|
|
GO111MODULE=on go build
|