-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
72 lines (59 loc) · 1.53 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
[tox]
minversion = 3.4.0
# Under Python 3.7, Ansible 2.4 has a syntax error in
# plugins/action/__init__.py, line 96
envlist =
py{27,35,36}-ansible{24,25,26,27,28,29,210}
py{37,38}-ansible{25,26,27,28,29,210}
skipsdist = true
skip_missing_interpreters = true
[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36
3.7: py37
3.8: py38
[travis:env]
ANSIBLE =
2.4: ansible24
2.5: ansible25
2.6: ansible26
2.7: ansible27
2.8: ansible28
2.9: ansible29
2.10: ansible210
[testenv]
deps =
coverage
ansible24: ansible>=2.4.0,<2.5.0
ansible25: ansible>=2.5.0,<2.6.0
ansible26: ansible>=2.6.0,<2.7.0
ansible27: ansible>=2.7.0,<2.8.0
ansible28: ansible>=2.8.0,<2.9.0
ansible29: ansible>=2.9.0,<2.10.0
ansible210: ansible>=2.10.0,<2.11.0
skip_install = true
whitelist_externals =
pwd
{toxinidir}/scripts/make-ansible-executable
setenv =
PYTHONPATH = {toxinidir}{:}{env:PYTHONPATH:}
PYTHONUNBUFFERED = 1
PYTHONWARNINGS = default::DeprecationWarning
ANSIBLE_FORCE_COLOR = {tty:1:0}
passenv =
ANSIBLE_DEBUG
CI
TRAVIS
TRAVIS_BRANCH
TRAVIS_JOB_ID
# For undetermined reasons, sometimes Ansible is installed without the
# executable bits set on ansible-playbook, etc.
commands_pre =
{toxinidir}/scripts/make-ansible-executable {envbindir}
commands =
coverage run --source={toxinidir}/connection_plugins --omit={envdir} {envbindir}/ansible-playbook -vv -i ./contrib/inventory ./tests/test.yml
commands_post =
coverage report