3cf31abecb
Recent changes in sphinx and pbr make it easier to just invoke sphinx-build directly instead of going through setup.py. Change-Id: Ic5c4f397fd45d9978c630ff03dcff7bf6b4d05e4 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
32 lines
799 B
INI
32 lines
799 B
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]
|
|
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
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = sphinx-build -W -b html doc/source doc/build
|
|
|
|
[testenv:validate]
|
|
commands = python3 tools/validate_tags.py
|