forked from aws-controllers-k8s/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 1.12 KB
/
Makefile
File metadata and controls
32 lines (23 loc) · 1.12 KB
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
SHELL := /bin/bash # Use bash syntax
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
@go run ./prow/jobs/generator.go && \
echo "Success! Templates for ProwJobs, Plugins, and Agent Workflows re-generated." || \
echo "Error while generating Prow templates";
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}'