X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=4fbbcc6b46e781f13f00639df54edb819b1b8865;hb=573c96a3e0ee18f2bacc544576ddd7405edb2319;hp=2223dec3241958292aad4b7880d7b2d611283806;hpb=e96bdbe3f3d8057ab57f8c1767d20f07961c87c6;p=docs.git diff --git a/tox.ini b/tox.ini index 2223dec32..4fbbcc6b4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,28 @@ [tox] minversion = 1.6 -envlist = docs,docs-linkcheck +envlist = coala,docs skipsdist = true +[testenv:coala] +basepython = python3 +deps = + coala==0.11 + coala-bears==0.11 + # Requests 2.16 breaks coala dependency on chardet + requests<2.16 + nodeenv==1.1.2 +commands = + nodeenv -p + npm install --global remark-cli remark-lint + coala --non-interactive + [testenv:docs] deps = -rrequirements.txt -commands = sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html +commands = + sphinx-build -j 4 -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 = -rrequirements.txt -commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck