forked from oVirt/ovirt-ansible-engine-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
32 lines (27 loc) · 939 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
[tox]
skipsdist = True
envlist = linters
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = bash
setenv =
ANSIBLE_ROLES_PATH={toxinidir}/tests/roles:{toxinidir}/tests/roles-deps
[testenv:ansible-lint]
commands = bash -c \
"ansible-lint --exclude={toxinidir}/tests/roles-deps {toxinidir}/tests/test*.yml"
[testenv:yamllint]
commands = bash -c \
"yamllint -c {toxinidir}/.yamllint {toxinidir}/tasks {toxinidir}/tests/*.yml"
[testenv:ansible-syntax]
commands =
bash -c \
"ansible-galaxy install -r {toxinidir}/tests/requirements.yml -p {toxinidir}/tests/roles-deps/"
bash -c \
"ansible-playbook --syntax-check --list-tasks {toxinidir}/tests/test*.yml"
[testenv:linters]
commands =
{[testenv:yamllint]commands}
{[testenv:ansible-syntax]commands}
{[testenv:ansible-lint]commands}