forked from SeldonIO/seldon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ginkgo Make target (SeldonIO#3709)
* Add Make target for Ginkgo installation * Use Ginkgo target for testing * Fix typos in Make command
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,10 @@ lint: licenses/dep.txt | |
./licenses | ||
|
||
# Run tests | ||
test: generate fmt vet manifests_all generate-resources | ||
ginkgo -r -outputdir=. -cover -coverprofile=cover.out ./controllers ./utils ./apis | ||
test: install-ginkgo generate fmt vet manifests_all generate-resources | ||
ACK_GINKGO_RC=true \ | ||
ACK_GINKGO_DEPRECATIONS=1.16.4 \ | ||
$(GINKGO) -r -outputdir=. -cover -coverprofile=cover.out ./controllers ./utils ./apis | ||
|
||
# Build manager binary | ||
manager: generate fmt vet | ||
|
@@ -187,6 +189,16 @@ else | |
CONTROLLER_GEN=$(shell which controller-gen) | ||
endif | ||
|
||
.PHONY: install-ginkgo | ||
install-ginkgo: | ||
ifeq (, $(shell command -v ginkgo)) | ||
go install github.com/onsi/ginkgo/[email protected] | ||
|
||
GINKGO=$(GOBIN)/ginkgo | ||
else | ||
GINKGO=$(shell type -p ginkgo) | ||
endif | ||
|
||
WEBHOOK_DIR=/tmp/k8s-webhook-server/serving-certs | ||
|
||
tls-extract: | ||
|