summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 7880718bd89a4c149d3da948176d23f990b54a02 (plain)
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
[tox]
minversion = 1.6
envlist =
    docs,
    docs-linkcheck,
    pep8,
    yamllint
skipsdist = true

[testenv]
usedevelop = False
setenv=
  HOME = {envtmpdir}
  PYTHONPATH = {toxinidir}
deps =
  -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master
  -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=master
  -r{toxinidir}/test-requirements.txt
  -r{toxinidir}/requirements.txt
install_command = pip install {opts} {packages}

[testenv:docs]
basepython = python2.7
deps = -r{toxinidir}/docs/requirements.txt
commands =
    sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
    echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo

[testenv:docs-linkcheck]
basepython = python2.7
deps = -r{toxinidir}/docs/requirements.txt
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck

[testenv:yamllint]
basepython = python2.7
files =
  {toxinidir}/docs
  {toxinidir}/sdnvpn/test/functest/
commands =
  yamllint -s {[testenv:yamllint]files}

[testenv:pep8]
basepython = python2.7
commands = flake8 {toxinidir}

[flake8]
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125
builtins = _
exclude = build,dist,doc,legacy,.eggs,.git,.tox,.venv,testapi_venv,venv