forked from rhevm-qe-automation/ovirt-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (34 loc) · 968 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
37
38
39
40
41
[tox]
skipsdist = True
envlist = linters
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = bash
[testenv:ansible-lint]
commands =
bash {toxinidir}/tox-ansible-lint-test.sh "{toxworkdir}" "{toxinidir}"
[testenv:ansible-syntax]
commands = bash -c "\
ansible-playbook -i 'localhost ansible-connection=local,' \
--syntax-check \
--list-tasks \
{toxinidir}/examples/playbooks/*.yml"
[testenv:yamllint]
commands =
yamllint \
-c {toxinidir}/.yamllint \
{toxinidir}/examples/playbooks \
{toxinidir}/tests
[testenv:flake8]
basepython=python
deps=flake8
commands =
flake8 {toxinidir}/python-scripts
[testenv:linters]
commands =
{[testenv:yamllint]commands}
{[testenv:ansible-syntax]commands}
{[testenv:ansible-lint]commands}
{[testenv:flake8]commands}