fab85312b0
The new PTI doesn't work for the way the i18n docs are built. Add a new doc build job that runs tox -edocs for until we figure out a better path to success. Remove the add-marker code since that's done in the doc publication jobs. Also stop rsyncing the code to a different directory, since it'll make the normal build case wrong and is otherwise handled by the publication jobs. Change-Id: I5237e750b4bc4899d71952a14c8d2ca92d9985a0
53 lines
1.4 KiB
INI
53 lines
1.4 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = docs,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
passenv =
|
|
# Required by add-marker.sh
|
|
ZUUL*
|
|
# Pass NO_LANG_BUILD=1 if you would like to build English version only
|
|
NO_LANG_BUILD
|
|
commands =
|
|
doc8 doc/source
|
|
# Build translated guides
|
|
{toxinidir}/tools/build-docs.sh
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
bash {toxinidir}/tools/check-po.sh {toxinidir}/doc {toxinidir}/glossary
|
|
python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml
|
|
bash {toxinidir}/tools/check-zanata-users-list.sh
|
|
whitelist_externals = bash
|
|
|
|
[testenv:generatepot]
|
|
# Generate POT files for translation
|
|
commands = {toxinidir}/tools/generatepot.sh
|
|
|
|
[testenv:zanata-users-sync]
|
|
commands =
|
|
python {toxinidir}/tools/zanata/zanata_users.py --output-file {toxinidir}/tools/zanata/translation_team.yaml
|
|
|
|
[doc8]
|
|
# File extensions to check
|
|
extensions = .rst, .yaml
|
|
# Maximal line length should be 80 but we have some overlong lines.
|
|
# Let's not get far more in.
|
|
max-line-length = 80
|
|
# Disable some doc8 checks:
|
|
# D000: Check RST validity
|
|
# - cannot handle "none" for code-block directive
|
|
ignore = D000
|