diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,7 +1,11 @@ [tox] minversion = 2.5 skipsdist = True -envlist = pep8,py27 +envlist = + pep8, + py27, + docs, + docs-linkcheck [testenv] basepython=python2 @@ -34,10 +38,12 @@ ignore = E123,E125,H803,E722 exclude = .tox,dist,docs,*egg,build,.venv,.git [testenv:docs] +deps = -rdocs/requirements.txt 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" +whitelist_externals = echo + +[testenv:docs-linkcheck] +deps = -rdocs/requirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck |