forked from ansible/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
132 lines (105 loc) · 2.02 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[tox]
minversion = 1.8
envlist =
py{27}-ansible{24,25,26}-functional
py{27,36,37}-ansible{24,25,26}-unit
py{36,37}-ansible{24,25,26}-functional
py{27,36,37}-lint
format-check
doc
skipdist = True
skip_missing_interpreters=True
[testenv]
usedevelop = True
passenv = *
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-rrequirements.txt
-rtest-requirements.txt
ansible24: ansible==2.4.6.0
ansible25: ansible==2.5.9
ansible26: ansible==2.6.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:pur]
commands=
pur -r requirements.txt
[testenv:py27-ansible24-unit]
tags =
unit
[testenv:py36-ansible24-unit]
tags =
unit
[testenv:py37-ansible24-unit]
tags =
unit
[testenv:py27-ansible25-unit]
tags =
unit
[testenv:py36-ansible25-unit]
tags =
unit
[testenv:py37-ansible25-unit]
tags =
unit
[testenv:py27-ansible26-unit]
tags =
unit
[testenv:py36-ansible26-unit]
tags =
unit
[testenv:py37-ansible26-unit]
tags =
unit
[testenv:py27-lint]
tags =
unit
[testenv:py36-lint]
tags =
unit
[testenv:py37-lint]
tags =
unit
[testenv:py27-ansible24-functional]
tags =
functional
[testenv:py36-ansible24-functional]
tags =
functional
[testenv:py37-ansible24-functional]
tags =
functional
[testenv:py27-ansible25-functional]
tags =
functional
[testenv:py36-ansible25-functional]
tags =
functional
[testenv:py37-ansible25-functional]
tags =
functional
[testenv:py27-ansible26-functional]
tags =
functional
[testenv:py36-ansible26-functional]
tags =
functional
[testenv:py37-ansible26-functional]
tags =
functional