forked from ansible/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
38 lines (35 loc) · 905 Bytes
/
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
[tox]
minversion = 1.8
envlist =
syntax
py{27}-ansible{19,21,22}-{unit,functional}
doc
skipdist = True
[testenv]
usedevelop = True
passenv = *
deps =
-rrequirements.txt
-rtest-requirements.txt
# TODO(retr0h): Remove ansible 1.9.6 in the near future.
ansible19: ansible==1.9.6
ansible21: ansible==2.1.4.0
ansible22: ansible==2.2.1.0
commands =
unit: py.test -vv -x --cov={toxinidir}/molecule/ {posargs}
functional: py.test -vv -x test/functional/ {posargs}
[testenv:syntax]
deps =
flake8
# NOTE(retr0h): We specifically pin to a known version so formatting
# is consistent across developer/PR.
yapf==0.13.2
commands =
yapf -i -r molecule/ test/unit/ test/functional/ --exclude molecule/verifier/ansible/**/*.py
flake8
[testenv:doc]
passenv = *
deps=
-rdoc-requirements.txt
commands=
python setup.py build_sphinx --builder=html