-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
35 lines (27 loc) · 941 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
.PHONY: \
converge \
install-deps \
pre-commit \
install
# Project constants
ANSIBLE_COLLECTIONS_PATH=
PYTHON = python3
PYTHON_VENV = .venv
create-folder-for-test:
mkdir -p ansible_collections/infra/convert2rhel/
cp -r playbooks plugins roles meta galaxy.yml ansible_collections/infra/convert2rhel/
install-deps:
virtualenv -p '$(PYTHON)' $(PYTHON_VENV); \
. $(PYTHON_VENV)/bin/activate; \
pip install --upgrade -r requirements.txt
touch $@
pre-commit:
pre-commit install --install-hooks
touch $@
install: install-deps pre-commit
analysis: install-deps
. $(PYTHON_VENV)/bin/activate; cd extensions && molecule converge --scenario-name analysis
convert: install-deps
. $(PYTHON_VENV)/bin/activate; cd extensions && molecule converge --scenario-name conversion
destroy: install-deps
. $(PYTHON_VENV)/bin/activate; cd extensions && molecule destroy --scenario-name conversion && molecule destroy --scenario-name analysis