-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
36 lines (31 loc) · 837 Bytes
/
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
[tox]
minversion = 1.6
skipsdist = True
envlist = ansible-syntax,ansible-lint
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
ANSIBLE_FORCE_COLOR=true
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
deps = -r{toxinidir}/test-requirements.txt
commands = {posargs}
[testenv:ansible-syntax]
changedir = tests
commands =
ansible-playbook -i inventory \
--syntax-check \
--list-tasks \
-e "rolename={toxinidir}" \
test.yml
[testenv:ansible-lint]
changedir = tests
commands = ansible-lint test.yml
[testenv:ansible-functional]
changedir = tests
commands =
ansible-playbook -i inventory \
-e "rolename={toxinidir}" \
test.yml