forked from grafana/k8s-monitoring-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (70 loc) · 2.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
SHELL := /bin/bash
UNAME := $(shell uname)
CHARTS = $(shell ls charts)
FEATURE_CHARTS = $(shell ls charts | grep -v k8s-monitoring)
.PHONY: clean
clean:
rm -rf node_modules
set -e && \
for chart in $(CHARTS); do \
make -C charts/$$chart clean; \
done
.PHONY: build
build:
set -e && \
for chart in $(FEATURE_CHARTS); do \
make -C charts/$$chart build; \
done
make -C charts/k8s-monitoring build
make -C charts/k8s-monitoring-test build
make -C charts/k8s-monitoring-v1 build
.PHONY: test
test: build
helm repo update
set -e && \
for chart in $(FEATURE_CHARTS); do \
make -C charts/$$chart test; \
done
make -C charts/k8s-monitoring test
make -C charts/k8s-monitoring-test test
make -C charts/k8s-monitoring-v1 test
####################################################################
# Installation / Setup #
####################################################################
.PHONY: setup install-deps
setup install-deps:
ifeq ($(UNAME), Darwin)
@./scripts/setup.sh
else
echo "Not on MacOS, you'll have to just install things manually for now."
exit 1
endif
.PHONY: install
install:
yarn install
####################################################################
# Linting #
####################################################################
.PHONY: lint lint-sh lint-md lint-txt lint-yml lint-alex lint-misspell lint-actionlint
lint: lint-sh lint-md lint-txt lint-yml lint-alex lint-misspell lint-actionlint
# Shell Linting for checking shell scripts
lint-sh lint-shell:
@./scripts/lint-shell.sh || true
# Markdown Linting for checking markdown files
lint-md lint-markdown:
@./scripts/lint-markdown.sh || true
# Text Linting for checking text files
lint-txt lint-text:
@./scripts/lint-text.sh || true
# Yaml Linting for checking yaml files
lint-yml lint-yaml:
@./scripts/lint-yaml.sh || true
# Alex Linting for checking insensitive language
lint-alex:
@./scripts/lint-alex.sh || true
# Misspell Linting for checking common spelling mistakes
lint-misspell:
@./scripts/lint-misspell.sh || true
# Actionlint Linting for checking GitHub Actions
lint-al lint-actionlint:
@./scripts/lint-actionlint.sh || true