-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (64 loc) · 1.39 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
.SILENT:
include .manala/Makefile
########
# Lint #
########
## Lint - Lint collection [VERBOSE]
lint:
$(call manala_docker_shell, ansible-lint \
$(if $(VERBOSE), -v) \
--force-color \
)
.PHONY: lint
########
# Test #
########
## Test - Run all tests (but coverage)
test: test.sanity test.units test.integration
.PHONY: test
## Test - Run sanity tests [VERBOSE]
test.sanity:
$(call manala_docker_shell, ansible-test sanity \
--requirements \
--venv \
--python 3.11 \
$(if $(VERBOSE), --verbose) \
--color yes \
--exclude .github/ \
--exclude .manala/ \
)
.PHONY: test.sanity
## Test - Run units tests [VERBOSE|COVERAGE]
test.units:
$(call manala_docker_shell, ansible-test units \
--requirements \
--venv \
--python 3.11 \
$(if $(VERBOSE), --verbose) \
$(if $(COVERAGE), --coverage) \
--color yes \
)
.PHONY: test.units
## Test - Run integration tests [VERBOSE|COVERAGE]
test.integration:
$(call manala_docker_shell, ansible-test integration \
--requirements \
--venv \
--python 3.11 \
$(if $(VERBOSE), --verbose) \
$(if $(COVERAGE), --coverage) \
--color yes \
)
.PHONY: test.integration
## Test - Run coverage [VERBOSE]
test.coverage:
$(call manala_docker_shell, ansible-test coverage xml \
--requirements \
--venv \
--python 3.11 \
--group-by command \
--group-by version \
$(if $(VERBOSE), --verbose) \
--color yes \
)
.PHONY: test.coverage