-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 841 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
34
35
36
37
38
.ONESHELL:
.PHONY: all help init update test
# find bundle
BUNDLE := $(shell which bundle)
ifndef BUNDLE
$(error Bundler not installed: gem install bundler)
endif
# find ansible-lint
LINT := $(shell which ansible-lint)
ifndef LINT
$(error ansible-lint not installed: pip install ansible-lint)
endif
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
converge: ## kitchen converge
@$(BUNDLE) exec kitchen converge
create: ## kitchen create
@$(BUNDLE) exec kitchen create
lint: ## ansible-lint
@$(LINT) .
list: ## kitchen list
@$(BUNDLE) exec kitchen list
login: ## kitchen login
@$(BUNDLE) exec kitchen login
test: ## kitchen test
@$(BUNDLE) exec kitchen test
verify: ## kitchen verify
@$(BUNDLE) exec kitchen verify