forked from jfrog/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (30 loc) · 919 Bytes
/
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
# Lint charts locally
CHART_TESTING_TAG ?= v2.2.0
TEST_IMAGE_TAG ?= v3.2.0
CHARTS_REPO ?= https://github.com/jfrog/charts
MAC_ARGS ?=
# If the first argument is "lint" or "mac" or "gke"...
ifneq ( $(filter wordlist 1,lint mac gke), $(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "lint" "mac" or "gke"
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