X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=0cc9e23339c0ad0c4d25e39b438ba624ab91a028;hb=f7df2d437f5b4b15d3c374da4d24b137cc672916;hp=d3489e5b00d5889225d2edd47aa05bae695648da;hpb=73ff381c7bb32f13a3d14e96850b84ab37338633;p=releng.git diff --git a/tox.ini b/tox.ini index d3489e5b0..0cc9e2333 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] @@ -15,6 +15,17 @@ setenv= [testenv:jjb] deps = - jenkins-job-builder==1.6.1 + jenkins-job-builder==2.5.0 commands= - jenkins-jobs test -o job_output -r jjb/ + jenkins-jobs test -o job_output -r {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