X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=8eb8a9cacdf3f577a7495309a62c17a41fd5ee2e;hb=25889c05abefcec60626b2d4d4b8057bf0782790;hp=ac3f40de2c8268ce982ecd1d71a1d7b42e968821;hpb=54db0e7ccd66049873e8c4c952d827088ded1885;p=docs.git diff --git a/tox.ini b/tox.ini index ac3f40de2..8eb8a9cac 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,31 @@ [tox] minversion = 1.6 -envlist = coala,docs +envlist = pre-commit,docs,docs-linkcheck skipsdist = true -[testenv:coala] +[testenv:docs] basepython = python3 -deps = - coala<0.11 - coala-bears - nodeenv +deps = -rdocs/requirements.txt commands = - nodeenv -p - npm install --global remark-cli remark-lint - coala --non-interactive + sphinx-build -q -j auto -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html -[testenv:docs] -deps = -rrequirements.txt +[testenv:docs-linkcheck] +basepython = python3 +deps = -rdocs/requirements.txt +commands = sphinx-build -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck + +[testenv:pre-commit] +basepython = python3 +deps = pre-commit 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 + pre-commit run --all-files --show-diff-on-failure + pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG + +[testenv:spelling] +basepython = python3 +deps = + -rdocs/requirements.txt + sphinxcontrib-spelling + PyEnchant +commands = sphinx-build -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling -[testenv:docs-linkcheck] -deps = -rrequirements.txt -commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck