-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (34 loc) · 1.28 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
41
42
43
##@ General
# The general settings and variables for the project
SHELL := /bin/bash
# The version of the chart
VERSION := $(shell grep "^version:" charts/splunk-synthetics-runner/Chart.yaml | awk '{print $$2}')
##@ Test
# Tasks related to testing the Helm chart
.PHONY: lint
lint: ## Lint the Helm chart with ct
@echo "Linting Helm chart..."
ct lint --config=ct.yaml || exit 1
.PHONY: pre-commit
pre-commit: ## Test the Helm chart with pre-commit
@echo "Checking the Helm chart with pre-commit..."
pre-commit run --all-files || exit 1
.PHONY: unittest
unittest: ## Run unittests on the Helm chart
@echo "Running unit tests on helm chart..."
helm unittest --color --strict -f "../../tests/unittests/*.yaml" charts/splunk-synthetics-runner || exit 1
.PHONY: docker-docs
docker-docs: ## Update chart docs - Runs in docker container
@echo "Update docs for helm chart..."
./scripts/helm-docs.sh || exit 1
.PHONY: docs
docs: ## Update chart docs
@echo "Update docs for helm chart..."
helm-docs --chart-search-root=charts/ || exit 1
.PHONY: install-tools
install-tools: ## Install tools (macOS)
LOCALBIN=$(LOCALBIN) scripts/install-tools.sh || exit 1
.PHONY: prepare-release
prepare-release: ## Prepare new release if needed
@echo "Preparing release..."
./scripts/prepare-release.sh || exit 1