Merge "cleanup *.pyc files in docs tox envs"

This commit is contained in:
Zuul 2019-02-06 23:42:41 +00:00 committed by Gerrit Code Review
commit 37346a9267
1 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,7 @@ description =
Build main documentation.
deps = -r{toxinidir}/doc/requirements.txt
commands =
{[testenv]commands}
rm -rf doc/build
# Check that all JSON files don't have \r\n in line.
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
@ -210,6 +211,7 @@ description =
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
{[testenv]commands}
rm -rf api-guide/build
sphinx-build -W -b html -d api-guide/build/doctrees api-guide/source api-guide/build/html
@ -219,6 +221,7 @@ description =
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
{[testenv]commands}
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
@ -228,6 +231,7 @@ description =
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
{[testenv]commands}
rm -rf releasenotes/build
sphinx-build -W -b html -d releasenotes/build/doctrees releasenotes/source releasenotes/build/html