forked from ansible/molecule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (34 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,20,21}-{unit,functional},doc
[testenv]
passenv = *
setenv =
VIRTUAL_ENV={envdir}
deps =
-rrequirements.txt
-rtest-requirements.txt
ansible19: ansible==1.9.6
ansible20: ansible==2.0.2.0
ansible21: ansible==2.1.1.0
commands =
unit: py.test --cov={envsitepackagesdir}/molecule/ test/unit/ {posargs}
functional: {toxinidir}/test/functional/test.bash
[flake8]
exclude = .venv/,.tox/,dist/,build/,doc/,.eggs/,molecule/verifier/ansible/
format = pylint
[testenv:syntax]
deps =
flake8
# NOTE(retr0h): We specifically pin to a known version so formatting
# is consistent across developer/PR.
yapf==0.11.1
commands =
yapf -i -r molecule/ test/ --exclude molecule/verifier/ansible/**/*.py
flake8
[testenv:doc]
passenv = *
deps=
-rdoc-requirements.txt
commands=
python setup.py build_sphinx