forked from ansible/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (71 loc) · 1.41 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
[tox]
minversion = 1.8
envlist =
py{27}-ansible{22,23,24}-{functional}
py{27,36}-ansible{22,23,24}-{unit}
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.2.0
ansible24: ansible==2.4.0.0
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 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-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