-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
156 lines (153 loc) · 3.54 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[tox]
requires =
tox>4
virtualenv>20.2
labels =
testenv = py311
env_list =
pipdep
dependency
lint
create
create-monorepo
converge
converge-monorepo
test-exec
test-exec-monorepo
verify
verify-monorepo
idempotence
idempotence-monorepo
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 = molecule create {posargs}
[testenv:create-monorepo]
setenv =
{[common-ansible-path]setenv}
REQUIREMENTS_PATH={toxinidir}/requirements-monorepo.yml
deps =
-r requirements-dev.txt
commands = molecule create {posargs}
[testenv:converge-monorepo]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
REQUIREMENTS_PATH={toxinidir}/requirements-monorepo.yml
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule converge {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-monorepo]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
REQUIREMENTS_PATH={toxinidir}/requirements-monorepo.yml
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule test {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-monorepo]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
REQUIREMENTS_PATH={toxinidir}/requirements-monorepo.yml
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule verify {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-monorepo]
allowlist_externals=mkdir
setenv =
{[common-ansible-path]setenv}
REQUIREMENTS_PATH={toxinidir}/requirements-monorepo.yml
deps =
-r requirements-dev.txt
commands =
{[common-ansible-path]commands}
molecule idempotence {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}