2013-12-11 06:18:49 -05:00
|
|
|
[tox]
|
2016-10-04 15:52:15 +11:00
|
|
|
envlist = docs,linters
|
2020-04-17 17:31:14 +02:00
|
|
|
minversion = 3.1.1
|
2013-12-11 06:18:49 -05:00
|
|
|
skipsdist = True
|
2020-04-17 17:31:14 +02:00
|
|
|
ignore_basepython_conflict = True
|
2013-12-11 06:18:49 -05:00
|
|
|
|
|
|
|
[testenv]
|
2014-04-15 08:24:17 -04:00
|
|
|
usedevelop = True
|
2020-04-17 17:31:14 +02:00
|
|
|
basepython = python3
|
2018-10-12 13:20:19 -04:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
|
|
|
PYTHON=coverage run --source openstack_governance --parallel-mode
|
|
|
|
OS_STDOUT_CAPTURE=1
|
|
|
|
OS_STDERR_CAPTURE=1
|
|
|
|
OS_DEBUG=1
|
|
|
|
OS_LOG_CAPTURE=1
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
|
|
stestr run '{posargs}'
|
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
coverage report --show-missing
|
2013-12-11 06:18:49 -05:00
|
|
|
|
2016-10-04 15:52:15 +11:00
|
|
|
[testenv:linters]
|
2018-06-09 01:16:41 +08:00
|
|
|
basepython = python3
|
2016-10-18 14:09:41 +11:00
|
|
|
whitelist_externals = bash
|
2017-03-15 17:08:53 -04:00
|
|
|
commands =
|
2019-07-30 15:18:00 -04:00
|
|
|
osg-check-schema
|
2017-03-15 17:08:53 -04:00
|
|
|
bash -c "find {toxinidir} \
|
2016-10-18 14:09:41 +11:00
|
|
|
\( -name .tox -prune \) \
|
|
|
|
-o -type f -name '*.yaml' \
|
|
|
|
-print0 | xargs -0 yamllint"
|
2016-10-04 15:52:15 +11:00
|
|
|
{toxinidir}/tools/check_projects_yaml_alphabetized.sh
|
2017-03-15 17:08:53 -04:00
|
|
|
flake8
|
2017-12-11 10:43:23 -05:00
|
|
|
whereto {toxinidir}/doc/source/_extra/.htaccess {toxinidir}/doc/test/redirect-tests.txt
|
2018-07-18 09:56:55 -04:00
|
|
|
{toxinidir}/tools/validate_repositories.py
|
2019-12-23 12:43:28 +01:00
|
|
|
|
2020-06-23 11:09:49 -04:00
|
|
|
[testenv:validate-legacy]
|
|
|
|
envdir = {toxworkdir}/linters
|
|
|
|
commands =
|
|
|
|
{toxinidir}/tools/validate-legacy.py
|
|
|
|
|
2019-12-23 12:43:28 +01:00
|
|
|
[testenv:validate_atcs]
|
|
|
|
commands = {toxinidir}/tools/validate_atcs.py
|
2016-10-04 15:52:15 +11:00
|
|
|
|
2018-10-12 14:58:28 -04:00
|
|
|
[testenv:pep8]
|
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
|
2013-12-11 06:18:49 -05:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2014-04-15 08:24:17 -04:00
|
|
|
|
|
|
|
[testenv:docs]
|
2021-01-07 10:49:37 +01:00
|
|
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
|
|
-r{toxinidir}/doc/requirements.txt
|
2022-02-10 11:38:01 -08:00
|
|
|
whitelist_externals =
|
|
|
|
find
|
|
|
|
rm
|
|
|
|
commands =
|
|
|
|
rm -Rf doc/build
|
|
|
|
find reference/projects -name '*.rst' -a '!' -name index.rst -delete
|
|
|
|
sphinx-build -W -b html doc/source doc/build/html
|
2015-12-20 15:16:49 -05:00
|
|
|
|
2018-07-03 15:01:34 -04:00
|
|
|
[testenv:check-review-status]
|
|
|
|
deps =
|
|
|
|
requests
|
|
|
|
prettytable
|
2019-12-23 12:43:28 +01:00
|
|
|
commands = {toxinidir}/tools/check_review_status.py
|