-
Notifications
You must be signed in to change notification settings - Fork 123
/
Makefile
36 lines (26 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SHELL := /bin/bash # Use bash syntax
PROW_JOBS_PATH="./prow/jobs"
AWS_SERVICE=$(shell echo $(SERVICE) | tr '[:upper:]' '[:lower:]')
.PHONY: gen-all
gen-all: prow-gen
# Assumes python3 is installed as default python on the host.
prow-gen: ## Compiles the Prow jobs
@pushd "$(PROW_JOBS_PATH)" 1>/dev/null; \
go run generator.go && \
echo "Success! Prowjobs available at $(PROW_JOBS_PATH)/jobs.yaml" || \
echo "Error while generating Prowjobs"; \
popd 1>/dev/null
kind-test: ## Run functional tests for SERVICE
@AWS_SERVICE=$(AWS_SERVICE) ./scripts/run-e2e-tests.sh
kind-helm-test: ## Run the Helm tests for SERVICE
@AWS_SERVICE=$(AWS_SERVICE) ./scripts/run-helm-tests.sh
test-recommended-policy:
@AWS_SERVICE=$(AWS_SERVICE) source ./scripts/iam-policy-test-runner.sh && assert_iam_policies
test-metadata-file:
@AWS_SERVICE=$(AWS_SERVICE) source ./scripts/metadata-file-test-runner.sh && assert_metadata_file
delete-all-kind-clusters: ## Delete all local kind clusters
@kind delete clusters --all
@rm -rf build/*
help: ## Show this help.
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \
| awk -F'[:#]' '{print $$1 = sprintf("%-30s", $$1), $$4}'