diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -15,6 +15,9 @@ setenv = VIRTUAL_ENV={envdir} HOME = {envtmpdir} PYTHONPATH = {toxinidir} +whitelist_externals = wget + touch + echo [testenv:pep8] deps = flake8 @@ -29,3 +32,12 @@ commands = python setup.py testr --coverage \ show-source = True ignore = E123,E125,H803,E722 exclude = .tox,dist,docs,*egg,build,.venv,.git + +[testenv:docs] +commands = + touch ./docs/index.rst + - wget -q -nc https://raw.githubusercontent.com/opnfv/opnfvdocs/master/etc/requirements.txt -O ./docs/requirements.txt + pip install -r ./docs/requirements.txt + pip install sphinx_opnfv_theme + sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + echo "Generated docs available in {toxinidir}/docs/_build/html" |