Update odltools
[netvirt.git] / resources / tools / odltools / tox.ini
1 [tox]
2 envlist = flake8, py{27,34,35,36}
3 skipsdist = true
4 skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
5
6 [testenv]
7 deps =
8     -r{toxinidir}/requirements.txt
9     -r{toxinidir}/test-requirements.txt
10 commands = python -m unittest discover -v
11 basepython =
12     py27: python2.7
13     py34: python3.4
14     py35: python3.5
15     py36: python3.6
16
17 [testenv:flake8]
18 deps = flake8
19 commands = flake8
20 basepython = python2.7
21 skip_install = True
22
23 [flake8]
24 max-line-length = 119
25 exclude = build, dist, .tox, .github, *.egg
26
27 [testenv:docs]
28 deps = sphinx
29 basepython = python2.7
30 commands = sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html
31
32 [testenv:docs-linkcheck]
33 deps = {[testenv:docs]deps}
34 basepython = python2.7
35 commands =
36     sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html
37     sphinx-build -b linkcheck {toxinidir}/docs {envtmpdir}/html