-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pavel Okhlopkov <[email protected]> Co-authored-by: Pavel Okhlopkov <[email protected]>
- Loading branch information
Showing
14 changed files
with
1,202 additions
and
1,174 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
GO=$(shell which go) | ||
GIT=$(shell which git) | ||
|
||
.PHONY: go-check | ||
go-check: | ||
$(call error-if-empty,$(GO),go) | ||
|
||
.PHONY: git-check | ||
git-check: | ||
$(call error-if-empty,$(GIT),git) | ||
|
||
.PHONY: go-module-version | ||
go-module-version: go-check git-check | ||
@echo "go get $(shell $(GO) list ./cmd/addon-operator)@$(shell $(GIT) rev-parse HEAD)" | ||
|
||
.PHONY: test | ||
test: go-check | ||
@$(GO) test --race --cover ./... | ||
|
||
define error-if-empty | ||
@if [[ -z $(1) ]]; then echo "$(2) not installed"; false; fi | ||
endef |
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
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
Oops, something went wrong.