X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=2242637dcd0ff920dc9d3091ae12e1eb7a4cca93;hb=2eb1c7f3fbd2a4bf6468f63e64ea3c1496236fe5;hp=53efbfe3c0f6b86962e57057303fe43120a6000c;hpb=8ad1bb152a304a6b195485010e66e013b7404a34;p=doctor.git diff --git a/tox.ini b/tox.ini index 53efbfe3..2242637d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.3.1 -envlist = py35, pep8 +envlist = py34, pep8,docs,docs-linkcheck skipsdist = True [testenv] @@ -28,7 +28,10 @@ passenv = CI_DEBUG INSTALLER_TYPE INSTALLER_IP - PROFILER_TYPE + INSPECTOR_TYPE + ADMIN_TOOL_TYPE + TEST_CASE + SSH_KEY changedir = {toxinidir}/doctor_tests commands = doctor-test @@ -47,3 +50,16 @@ enable-extensions=H106,H203 builtins = _ filename = *.py,app.wsgi exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tests + +[testenv:docs] +changedir = {toxinidir} +deps = -rdocs/requirements.txt +commands = + 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] +changedir = {toxinidir} +deps = -rdocs/requirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck