forked from ansible/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
105 lines (85 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[tox]
minversion = 1.8
envlist =
py{27}-ansible{22,23,24,25}-functional
py{27,36}-ansible{22,23,24,25}-unit
py{36}-ansible{24,25}-functional
py{27,36}-lint
format-check
doc
skipdist = True
skip_missing_interpreters=True
[testenv]
usedevelop = True
passenv = *
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-rrequirements.txt
-rtest-requirements.txt
ansible22: ansible==2.2.3.0
ansible23: ansible==2.3.3.0
ansible24: ansible==2.4.4.0
ansible25: ansible==2.5.4
commands =
unit: py.test -vv --cov-report=term-missing --cov={toxinidir}/molecule/ --no-cov-on-fail {posargs}
functional: py.test -vv -x test/functional/ {posargs}
lint: flake8
lint: yamllint -s test/ molecule/
[testenv:format]
commands =
yapf -i -r molecule/ test/
[testenv:format-check]
commands =
yapf -d -r molecule/ test/
[testenv:doc]
passenv = *
deps=
-rdoc-requirements.txt
commands=
python setup.py build_sphinx --builder=html
[testenv:py27-ansible22-unit]
tags =
unit
[testenv:py36-ansible22-unit]
tags =
unit
[testenv:py27-ansible23-unit]
tags =
unit
[testenv:py36-ansible23-unit]
tags =
unit
[testenv:py27-ansible24-unit]
tags =
unit
[testenv:py36-ansible24-unit]
tags =
unit
[testenv:py27-ansible25-unit]
tags =
unit
[testenv:py36-ansible25-unit]
tags =
unit
[testenv:py27-lint]
tags =
unit
[testenv:py36-lint]
tags =
unit
[testenv:py27-ansible22-functional]
tags =
functional
[testenv:py27-ansible23-functional]
tags =
functional
[testenv:py27-ansible24-functional]
tags =
functional
[testenv:py27-ansible25-functional]
tags =
functional
[testenv:py36-ansible25-functional]
tags =
functional