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