X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=abdffc52d7e8431afca4e691ecbc62838aafc96e;hb=baab3f70e234538d043b0cf76eb5c9773164da35;hp=d3489e5b00d5889225d2edd47aa05bae695648da;hpb=e17fbef0b73d270a59de87418d28d74e489b8df4;p=releng.git diff --git a/tox.ini b/tox.ini index d3489e5b0..abdffc52d 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py27 +envlist = jjb,docs,docs-linkcheck skipsdist = True [testenv] @@ -17,4 +17,15 @@ setenv= deps = jenkins-job-builder==1.6.1 commands= - jenkins-jobs test -o job_output -r jjb/ + jenkins-jobs test -o job_output -r jjb/global:{posargs:"jjb/"} + +[testenv:docs] +deps = -r{toxinidir}/docs/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] +deps = -r{toxinidir}/docs/requirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck