-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
106 lines (103 loc) · 2.21 KB
/
tox.ini
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[tox]
requires =
tox>4
virtualenv>20.2
labels =
testenv = py311
env_list =
pipdep
dependency
lint
create
converge
test-exec
verify
idempotence
destroy
package
[testenv:pipdep]
allowlist_externals=rm
deps =
-r requirements-poetry.txt
commands =
poetry lock
rm -rf requirements.txt
poetry export -f requirements.txt --without-hashes -o requirements.txt
rm -rf requirements-dev.txt
poetry export -f requirements.txt --with dev --without-hashes -o requirements-dev.txt
[testenv:package]
deps =
-r requirements-poetry.txt
commands =
poetry build
[testenv:dependency]
deps =
-r requirements-dev.txt
commands = molecule dependency
[testenv:lint]
deps =
-r requirements-dev.txt
commands =
yamllint .
flake8
ansible-lint
[common-ansible-path]
setenv =
ANSIBLE_ROLES_PATH={toxinidir}/../community:{toxinidir}/../oss:{toxinidir}/..
ANSIBLE_COLLECTIONS_PATH={toxinidir}/../community-collections
commands =
mkdir -p {toxinidir}/../community
mkdir -p {toxinidir}/../oss
mkdir -p {toxinidir}/../community-collections
[testenv:create]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule create {posargs}
[testenv:converge]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule converge {posargs}
[testenv:test-exec]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule test {posargs}
[testenv:verify]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule verify {posargs}
[testenv:idempotence]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule idempotence {posargs}
[testenv:destroy]
setenv =
DEPENDENCY_ENABLED=False
deps =
-r requirements-dev.txt
commands =
molecule destroy {posargs}