-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
37 lines (29 loc) · 1.21 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
37
.PHONY: lint
lint: yamllint catlin
.PHONY: yamllint
yamllint: export LINT_CONFIG:={extends: default, rules: {truthy: {check-keys: no}, line-length: {max: 150}}}
yamllint:
@find . -type f -name '*.yaml' | xargs -I '{}' sh -c 'echo "> Linting (yaml) {}..."; yamllint -d "$(LINT_CONFIG)" {}'
.PHONY: catlin
catlin:
@ls -1 pipeline/buildpacks*/*/*.yaml | xargs -I '{}' sh -c 'echo "> Linting (catlin) {}..."; catlin validate {}'
@ls -1 task/buildpacks*/*/*.yaml | xargs -I '{}' sh -c 'echo "> Linting (catlin) {}..."; catlin validate {}'
.PHONY: test-kind
test-kind:
@./scripts/platforms/kind/full_run.sh
.PHONY: test-gke
test-gke:
@./scripts/platforms/gke/full_run.sh
.PHONY: test-openshift
test-openshift: export KUBECTLCMD=oc
test-openshift:
@./scripts/platforms/openshift/full_run.sh
.PHONY: generate-docs
generate-docs:
@find pipeline -type d | grep -e '[a-z\-]\+/[0-9]\+\.[0-9]\+$$' | xargs -I '{}' sh -c 'echo "\n\n> Docs for {}...\n"; ./scripts/generate-docs.sh {}'
@find task -type d | grep -e '[a-z\-]\+/[0-9]\+\.[0-9]\+$$' | xargs -I '{}' sh -c 'echo "\n\n> Docs for {}...\n"; ./scripts/generate-docs.sh {}'
.PHONY: diff
diff:
@./scripts/diff.sh
.PHONY: prepare-for-pr
prepare-for-pr: lint generate-docs test-kind