9864d1504f
Switch docs to new PTI docs interface using tox-docs via the template build-openstack-docs-pti. Fix tox.ini to use proper output directory. With this change, Zuul now uses "tox -e docs" for building documentation following the updated PTI. Needed-By: https://review.openstack.org/608443 Change-Id: Ifdb23c28a0c8a42542919dd02d8f459af324deec
44 lines
1.1 KiB
INI
44 lines
1.1 KiB
INI
[tox]
|
|
envlist = docs,linters
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:linters]
|
|
basepython = python3
|
|
whitelist_externals = bash
|
|
commands =
|
|
bash -c "find {toxinidir} \
|
|
\( -name .tox -prune \) \
|
|
-o -type f -name '*.yaml' \
|
|
-print0 | xargs -0 yamllint"
|
|
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
|
|
flake8
|
|
whereto {toxinidir}/doc/source/_extra/.htaccess {toxinidir}/doc/test/redirect-tests.txt
|
|
{toxinidir}/tools/validate_repositories.py
|
|
{toxinidir}/tools/validate_atcs.py
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:validate]
|
|
basepython = python3
|
|
commands = python3 tools/validate_tags.py
|
|
|
|
[testenv:check-review-status]
|
|
basepython = python3
|
|
deps =
|
|
requests
|
|
prettytable
|
|
commands = {toxinidir}/tools/check_review_status.py |