-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from Kuadrant/makefile-enhancements
makefile enhancements
- Loading branch information
Showing
5 changed files
with
51 additions
and
42 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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
GINKGO = $(PROJECT_PATH)/bin/ginkgo | ||
$(GINKGO): | ||
# In order to make sure the version of the ginkgo cli installed | ||
# is the same as the version of go.mod, | ||
# instead of calling go-install-tool, | ||
# running go install from the current module will pick version from current go.mod file. | ||
GOBIN=$(PROJECT_PATH)/bin go install github.com/onsi/ginkgo/v2/ginkgo | ||
|
||
.PHONY: ginkgo | ||
ginkgo: $(GINKGO) ## Download ginkgo locally if necessary. |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
KIND = $(PROJECT_PATH)/bin/kind | ||
KIND_VERSION = v0.22.0 | ||
$(KIND): | ||
$(call go-install-tool,$(KIND),sigs.k8s.io/kind@$(KIND_VERSION)) | ||
|
||
.PHONY: kind | ||
kind: $(KIND) ## Download kind locally if necessary. |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
KUSTOMIZE = $(PROJECT_PATH)/bin/kustomize | ||
$(KUSTOMIZE): | ||
$(call go-install-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v4@v4.5.5) | ||
|
||
.PHONY: kustomize | ||
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. |
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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
|
||
GOLANGCI-LINT=$(PROJECT_PATH)/bin/golangci-lint | ||
$(GOLANGCI-LINT): | ||
mkdir -p $(PROJECT_PATH)/bin | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(PROJECT_PATH)/bin v1.55.2 | ||
|
||
.PHONY: golangci-lint | ||
golangci-lint: $(GOLANGCI-LINT) | ||
|
||
.PHONY: run-lint | ||
run-lint: $(GOLANGCI-LINT) | ||
$(GOLANGCI-LINT) run --timeout 2m | ||
golangci-lint: $(GOLANGCI-LINT) ## Download golangci-lint |