-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
74 lines (56 loc) · 3.06 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
SHELL:=bash
default: help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: bootstrap
bootstrap: ## Bootstrap local environment for first use
@make git-hooks
.PHONY: git-hooks
git-hooks: ## Set up hooks in .githooks
@git submodule update --init .githooks ; \
git config core.hooksPath .githooks \
.PHONY: test
test: ## Build, test, and destroy default scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action test --args "default --destroy=always"
.PHONY: test-hybrid-external-database
test-hybrid-external-database: ## Build, test, and destroy hybrid-external-database scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action test --args "hybrid-external-database --destroy=always"
.PHONY: build
build: ## Build default scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action test --args "default converge"
.PHONY: build-al
build-al: ## Build hybrid_amazon_linux scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action converge --args "hybrid-amazon-linux"
.PHONY: verify-al
verify-al: ## Verify hybrid_amazon_linux scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action verify --args "hybrid-amazon-linux"
.PHONY: destroy-al
destroy-al: ## Destroy hybrid_amazon_linux scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action destroy --args "hybrid-amazon-linux"
.PHONY: test-al
test-al: ## Test hybrid_amazon_linux scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action test --args "hybrid-amazon-linux --destroy=always"
.PHONY: build-ecs
build-ecs: ## Build hybrid_ecs scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action converge --args "hybrid-ecs"
.PHONY: verify-ecs
verify-ecs: ## Verify hybrid_ecs scenario with Kitchen Terraform
@if [ -z '${KONG_EE_LICENSE}' ]; then echo "You must set the KONG_EE_LICENSE variable with a valid license before running this step." ; exit 1 ; fi
@ci/scripts/run-kitchen.sh --action verify --args "hybrid-ecs"
.PHONY: destroy-ecs
destroy-ecs: ## Destroy hybrid_ecs scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action destroy --args "hybrid-ecs"
.PHONY: test-ecs
test-ecs: ## Test hybrid_ecs scenario with Kitchen Terraform
@if [ -z '${KONG_EE_LICENSE}' ]; then echo "You must set the KONG_EE_LICENSE variable with a valid license before running this step." ; exit 1 ; fi
@ci/scripts/run-kitchen.sh --action test --args "hybrid-ecs --destroy=always"
.PHONY: build-hybrid-external-database
build-hybrid-external-database: ## Test hybrid-external-database scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action converge --args "hybrid-external-database"
.PHONY: destroy
destroy: ## Build default scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action test --args "default destroy"
.PHONY: destroy-hybrid-external-database
destroy-hybrid-external-database: ## Destroy hybrid-external-database scenario with Kitchen Terraform
@ci/scripts/run-kitchen.sh --action destroy --args "hybrid-external-database"