forked from ansible/workshops
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
156 lines (148 loc) · 4.13 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]
envlist = linters,workshop-rhel,workshop-f5,workshop-security,workshop-windows,workshop-networking
skipsdist = true
[testenv]
[testenv:linters]
deps =
-r{toxinidir}/test-requirements.txt
commands =
yamllint -s .
[testenv:workshops]
sitepackages = True
whitelist_externals =
ansible-playbook
bash
deps =
ansible
netaddr
pywinrm
requests
requests-credssp
boto
boto3
paramiko
setenv =
ANSIBLE_CONFIG = provisioner/ansible.cfg
passenv =
AWS_ACCESS_KEY
AWS_SECRET_KEY
WORKSHOPS_CHANGE_ID
commands_pre =
python provisioner/tests/generate_ci_common.py
[testenv:workshop-rhel]
sitepackages =
{[testenv:workshops]sitepackages}
whitelist_externals =
{[testenv:workshops]whitelist_externals}
deps =
{[testenv:workshops]deps}
setenv =
{[testenv:workshops]setenv}
passenv =
{[testenv:workshops]passenv}
commands_pre =
{[testenv:workshops]commands_pre}
commands =
ansible-playbook provisioner/provision_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-rhel.yml
bash ./provisioner/tests/verify-rhel.sh
commands_post =
ansible-playbook provisioner/teardown_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-rhel.yml
[testenv:workshop-security]
sitepackages =
{[testenv:workshops]sitepackages}
whitelist_externals =
{[testenv:workshops]whitelist_externals}
deps =
{[testenv:workshops]deps}
setenv =
{[testenv:workshops]setenv}
passenv =
{[testenv:workshops]passenv}
commands_pre =
{[testenv:workshops]commands_pre}
commands =
ansible-playbook provisioner/provision_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-security.yml
commands_post =
ansible-playbook provisioner/teardown_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-security.yml
[testenv:workshop-f5]
sitepackages =
{[testenv:workshops]sitepackages}
whitelist_externals =
{[testenv:workshops]whitelist_externals}
deps =
{[testenv:workshops]deps}
setenv =
{[testenv:workshops]setenv}
passenv =
{[testenv:workshops]passenv}
commands_pre =
{[testenv:workshops]commands_pre}
commands =
ansible-playbook provisioner/provision_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-f5.yml
bash ./provisioner/tests/verify-f5.sh
commands_post =
ansible-playbook provisioner/teardown_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-f5.yml
[testenv:workshop-windows]
sitepackages =
{[testenv:workshops]sitepackages}
whitelist_externals =
{[testenv:workshops]whitelist_externals}
deps =
{[testenv:workshops]deps}
setenv =
{[testenv:workshops]setenv}
passenv =
{[testenv:workshops]passenv}
commands_pre =
{[testenv:workshops]commands_pre}
commands =
ansible-playbook provisioner/provision_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-windows.yml
commands_post =
ansible-playbook provisioner/teardown_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-windows.yml
[testenv:workshop-networking]
sitepackages =
{[testenv:workshops]sitepackages}
whitelist_externals =
{[testenv:workshops]whitelist_externals}
deps =
{[testenv:workshops]deps}
setenv =
{[testenv:workshops]setenv}
passenv =
{[testenv:workshops]passenv}
commands_pre =
{[testenv:workshops]commands_pre}
commands =
ansible-playbook provisioner/provision_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-networking.yml
commands_post =
ansible-playbook provisioner/teardown_lab.yml \
-e @provisioner/tests/vars.yml \
-e @provisioner/tests/ci-common.yml \
-e @provisioner/tests/ci-networking.yml