This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
52 lines (44 loc) · 1.68 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
[tox]
envlist = linters
skipsdist = True
[testenv]
basepython = python2.7
[testenv:linters]
deps =
{[testenv:ansible-lint]deps}
commands =
{[testenv:ansible-syntax]commands}
{[testenv:ansible-lint]commands}
[testenv:ansible-lint]
deps =
ansible
ansible-lint
commands =
ansible-lint -x ANSIBLE0010 {toxinidir}/playbooks/echo.yml
ansible-lint -x ANSIBLE0010 {toxinidir}/playbooks/install-jenkins.yml
ansible-lint -x ANSIBLE0010 {toxinidir}/playbooks/setup-build-nodes.yml
ansible-lint -x ANSIBLE0010 {toxinidir}/playbooks/upgrade-jenkins.yml
ansible-lint -x ANSIBLE0010 {toxinidir}/playbooks/upgrade-build-nodes.yml
[testenv:ansible-syntax]
deps = ansible
commands =
ansible-playbook -i 'localhost ansible-connection=local,' \
--syntax-check \
--list-tasks \
{toxinidir}/playbooks/echo.yml
ansible-playbook -i 'localhost ansible-connection=local,' \
--syntax-check \
--list-tasks \
{toxinidir}/playbooks/install-jenkins.yml
ansible-playbook -i 'localhost ansible-connection=local,' \
--syntax-check \
--list-tasks \
{toxinidir}/playbooks/setup-build-nodes.yml
ansible-playbook -i 'localhost ansible-connection=local,' \
--syntax-check \
--list-tasks \
{toxinidir}/playbooks/upgrade-jenkins.yml
ansible-playbook -i 'localhost ansible-connection=local,' \
--syntax-check \
--list-tasks \
{toxinidir}/playbooks/upgrade-build-nodes.yml