Conform to interface change of ODL node in Fuel Deployment
[sdnvpn.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4     docs,
5     docs-linkcheck,
6     pep8,
7     yamllint
8 skipsdist = true
9
10 [testenv]
11 usedevelop = False
12 setenv=
13   HOME = {envtmpdir}
14   PYTHONPATH = {toxinidir}
15 deps =
16   -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master
17   -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=master
18   -r{toxinidir}/test-requirements.txt
19   -r{toxinidir}/requirements.txt
20 install_command = pip install {opts} {packages}
21
22 [testenv:docs]
23 basepython = python2.7
24 deps = -r{toxinidir}/docs/requirements.txt
25 commands =
26     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
27     echo "Generated docs available in {toxinidir}/docs/_build/html"
28 whitelist_externals = echo
29
30 [testenv:docs-linkcheck]
31 basepython = python2.7
32 deps = -r{toxinidir}/docs/requirements.txt
33 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
34
35 [testenv:yamllint]
36 basepython = python2.7
37 files =
38   {toxinidir}/docs
39   {toxinidir}/sdnvpn/test/functest/
40 commands =
41   yamllint -s {[testenv:yamllint]files}
42
43 [testenv:pep8]
44 basepython = python2.7
45 commands = flake8 {toxinidir}
46
47 [flake8]
48 # E123, E125 skipped as they are invalid PEP-8.
49
50 show-source = True
51 ignore = E123,E125
52 builtins = _
53 exclude = build,dist,doc,legacy,.eggs,.git,.tox,.venv,testapi_venv,venv