X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=a4d4dc7dd70f762482f2b4c8981cdeb3cd8fb969;hb=ef7624527898ec135eaf31603a915b441ac9a775;hp=8c96a7d472af8c63bd5115f2b7f8c75585694112;hpb=a0809c1a7c96820f659fd9c57b48008b76ac5b13;p=kuberef.git diff --git a/tox.ini b/tox.ini index 8c96a7d..a4d4dc7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -minversion = 3.15 +minversion = 3.5 skipsdist = True envlist = lint,docs @@ -8,14 +8,25 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY [testenv:lint] deps = - {env:BASHATE_INSTALL_PATH:bashate} - yamllint - rstcheck + -r{toxinidir}/test-requirements.txt whitelist_externals = bash commands = bash -c "find {toxinidir} \ -not -path {toxinidir}/.tox/\* \ - -name \*.sh | xargs bashate -v" + -not -path {toxinidir}/.venv/\* \ +# E006 check for lines longer than 79 columns + -name \*.sh | xargs bashate -v -iE006" bash -c "yamllint {toxinidir}" bash -c "find {toxinidir} \ -not -path {toxinidir}/.tox/\* \ -name \*.rst | xargs rstcheck" + +[testenv:docs] +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] +deps = -rdocs/requirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck