Repository navigation
chore: Clean inner Makefile #1496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -79,7 +79,6 @@ GOBIN=$(shell go env GOBIN) | |||||
| endif | ||||||
|
|
||||||
| # Setting SHELL to bash allows bash commands to be executed by recipes. | ||||||
| # This is a requirement for 'setup-envtest.sh' in the test target. | ||||||
| # Options are set to exit when a recipe line exits non-zero or a piped command fails. | ||||||
| SHELL = /usr/bin/env bash -o pipefail | ||||||
| .SHELLFLAGS = -ec | ||||||
|
|
@@ -129,10 +128,12 @@ generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and | |||||
|
|
||||||
| .PHONY: fmt | ||||||
| fmt: ## Run go fmt against code. | ||||||
| cd argocd-operator && go fmt ./... | ||||||
| go fmt ./... | ||||||
|
|
||||||
| .PHONY: vet | ||||||
| vet: ## Run go vet against code. | ||||||
| cd argocd-operator && go vet ./... | ||||||
| go vet ./... | ||||||
|
|
||||||
| .PHONY: update-dependencies | ||||||
|
|
@@ -147,15 +148,15 @@ update-dependencies-argocd: ## Update only the Argo CD dependency. | |||||
| update-dependencies-gitops-promoter: ## Update only the GitOps Promoter dependency. | ||||||
| $(MAKE) -C argocd-operator update-dependencies-gitops-promoter | ||||||
|
|
||||||
| .PHONY: test-all | ||||||
| test-all: manifests generate fmt vet ## Run all tests. | ||||||
| go test -timeout 1h ./... -coverprofile cover.out | ||||||
| get-image-updater-crd: ## Download Image Updater CRD. | ||||||
| @echo "downloading image updater crd" | ||||||
| @curl -sSLo config/crd/bases/argocd-image-updater.argoproj.io_imageupdaters.yaml https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/master/config/crd/bases/argocd-image-updater.argoproj.io_imageupdaters.yaml | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make HTTP failures fail this target.
Suggested fix
Committable suggestion
|
||||||
|
|
||||||
| .PHONY: test | ||||||
| test: manifests generate fmt vet ## Run unit tests. | ||||||
| cd argocd-operator && make test | ||||||
| REDIS_CONFIG_PATH="build/redis" go test `go list ./... | grep -v test` -coverprofile cover.out | ||||||
| cd argocd-operator && REDIS_CONFIG_PATH="$(shell pwd)/build/redis" go test $$(go list ./... | grep -E -v '/tests/ginkgo') -coverprofile cover.out | ||||||
|
|
||||||
| REDIS_CONFIG_PATH="build/redis" go test $$(go list ./... | grep -v test) -coverprofile cover.out | ||||||
|
|
||||||
| .PHONY: e2e-tests-ginkgo | ||||||
| e2e-tests-ginkgo: e2e-tests-sequential-ginkgo e2e-tests-parallel-ginkgo ## Runs Ginkgo e2e sequential and parallel tests | ||||||
|
|
||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goal apparently unused, the
1htimeout would not be enough.