-
Notifications
You must be signed in to change notification settings - Fork 575
/
Makefile
78 lines (56 loc) · 1.54 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
#
# Makefile
#
TEST?=$$(go list ./... |grep -v 'vendor'|grep -v 'utils')
# Azure Pipelines
azp-strategy:
@echo "==> Running script..."
./tests/scripts/azp-strategy.ps1
azp-backend:
@echo "==> Running script..."
./tests/scripts/azp-backend.sh
azp-spn-generator:
@echo "==> Running script..."
./tests/scripts/azp-spn-generator.sh
# Terraform
tf-install:
@echo "==> Running script..."
./tests/scripts/tf-install.sh
tf-prepare:
@echo "==> Running script..."
./tests/scripts/tf-prepare.sh
tf-fmt:
@echo "==> Running script..."
./tests/scripts/tf-fmt.sh
tf-init:
@echo "==> Running script..."
./tests/scripts/tf-init.sh
tf-plan:
@echo "==> Running script..."
./tests/scripts/tf-plan.sh
tf-apply:
@echo "==> Running script..."
./tests/scripts/tf-apply.sh
tf-destroy:
@echo "==> Running script..."
./tests/scripts/tf-destroy.sh
# Terratest
terratest:
@echo "==> Running Go test..."
cd tests/terratest && go test $(TEST) $(TESTARGS) -run ^$(TESTPREFIX)
# OPA Conftest
opa-install:
@echo "==> Running script..."
./tests/scripts/opa-install-linux.sh
opa-run-tests:
@echo "==> Running script..."
./tests/scripts/opa-run-tests.sh
opa-update-values:
@echo "==> Running script..."
./tests/scripts/opa-update-values.ps1 -GENERATE_AUTO_TFVARS
opa-update-git:
@echo "==> Running script..."
./tests/scripts/opa-update-git.sh
docs:
terraform-docs .
.PHONY: azp-strategy azp-backend azp-spn-generator docs tf-install tf-prepare tf-fmt tf-init tf-plan tf-apply tf-destroy terratest opa-install opa-run-tests opa-update-values opa-update-git