forked from rimusz/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (34 loc) · 1.03 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
38
39
40
# Test charts locally
MAC_ARGS ?=
CHARTS_REPO ?= https://github.com/rimusz/charts
CHART_TESTING_IMAGE ?= quay.io/helmpack/chart-testing
CHART_TESTING_TAG ?= v2.3.3
TEST_IMAGE_TAG ?= v3.3.2
# If the first argument is "lint" or "mac" or "gke" or "kind"
ifneq ( $(filter wordlist 1,lint mac gke kind), $(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "lint" "mac" or "gke" or "kind"
MAC_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(MAC_ARGS):;@:)
endif
.PHONY: lint
lint:
$(eval export CHART_TESTING_TAG)
$(eval export CHARTS_REPO)
$(eval export CHART_TESTING_ARGS=${MAC_ARGS})
@.test/lint-charts-local.sh
.PHONY: mac
mac:
$(eval export CHART_TESTING_TAG)
$(eval export CHARTS_REPO)
$(eval export CHART_TESTING_ARGS=${MAC_ARGS})
@.test/e2e-docker4mac.sh
.PHONY: gke
gke:
$(eval export TEST_IMAGE_TAG)
$(eval export CHARTS_REPO)
$(eval export CHART_TESTING_ARGS=${MAC_ARGS})
@.test/e2e-local-gke.sh
.PHONY: publish
publish:
@./.scripts/repo-sync.sh