2015-11-03 14:42:41 +09:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2016-02-03 15:30:06 +09:00
|
|
|
envlist = docs,pep8
|
2015-11-03 14:42:41 +09:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2018-09-04 19:03:13 +02:00
|
|
|
basepython=python3
|
2016-02-03 15:30:06 +09:00
|
|
|
usedevelop = True
|
2015-11-03 14:42:41 +09:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2017-03-07 11:16:10 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-11-03 14:42:41 +09:00
|
|
|
|
2018-01-07 14:52:46 +01:00
|
|
|
[testenv:ansible]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
-r{toxinidir}/ansible-requirement.txt
|
|
|
|
passenv = HOME
|
|
|
|
setenv =
|
|
|
|
ANSIBLE_CONFIG = {toxinidir}/playbook/tests/ansible.cfg
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-11-03 14:42:41 +09:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2017-06-06 06:46:06 +00:00
|
|
|
commands =
|
2017-08-04 17:03:38 +00:00
|
|
|
doc8 doc/source
|
2017-06-06 06:46:06 +00:00
|
|
|
# Build translated guides
|
2018-12-06 22:31:49 +01:00
|
|
|
docstheme-build-translated.sh
|
2016-02-03 15:30:06 +09:00
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands =
|
|
|
|
flake8
|
2017-08-20 22:41:05 +09:00
|
|
|
bash {toxinidir}/tools/check-po.sh {toxinidir}/doc {toxinidir}/glossary
|
2016-06-16 02:19:18 +09:00
|
|
|
python {toxinidir}/tools/check_yaml_file.py {toxinidir}/tools/zanata/translation_team.yaml
|
2017-07-27 23:19:54 +00:00
|
|
|
bash {toxinidir}/tools/check-zanata-users-list.sh
|
2018-04-15 04:54:46 +09:00
|
|
|
{[testenv:generatepot]commands}
|
2016-02-27 23:42:08 +09:00
|
|
|
whitelist_externals = bash
|
2017-04-07 10:40:00 +00:00
|
|
|
|
|
|
|
[testenv:generatepot]
|
|
|
|
# Generate POT files for translation
|
|
|
|
commands = {toxinidir}/tools/generatepot.sh
|
2017-07-27 23:19:54 +00:00
|
|
|
|
|
|
|
[testenv:zanata-users-sync]
|
|
|
|
commands =
|
|
|
|
python {toxinidir}/tools/zanata/zanata_users.py --output-file {toxinidir}/tools/zanata/translation_team.yaml
|
2017-08-04 17:03:38 +00:00
|
|
|
|
|
|
|
[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
|