2014-08-20 12:49:32 -07:00
|
|
|
[tox]
|
2021-05-12 16:53:15 +05:30
|
|
|
minversion = 3.18.0
|
2014-08-20 12:49:32 -07:00
|
|
|
skipsdist = True
|
|
|
|
envlist = bashate
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = False
|
2020-05-09 13:30:10 +02:00
|
|
|
basepython = python3
|
2014-08-20 12:49:32 -07:00
|
|
|
|
|
|
|
[testenv:bashate]
|
2016-02-16 14:50:53 +11:00
|
|
|
# if you want to test out some changes you have made to bashate
|
|
|
|
# against devstack, just set BASHATE_INSTALL_PATH=/path/... to your
|
|
|
|
# modified bashate tree
|
2015-10-15 11:50:10 +11:00
|
|
|
deps =
|
2020-05-09 13:30:10 +02:00
|
|
|
{env:BASHATE_INSTALL_PATH:bashate==2.0.0}
|
2021-05-12 16:53:15 +05:30
|
|
|
allowlist_externals = bash
|
2015-05-15 13:09:26 +10:00
|
|
|
commands = bash -c "find {toxinidir} \
|
2015-12-21 08:36:40 -05:00
|
|
|
-not \( -type d -name .?\* -prune \) \
|
|
|
|
-not \( -type d -name doc -prune \) \
|
2016-03-24 12:27:53 +00:00
|
|
|
-not \( -type f -name localrc -prune \) \
|
2015-12-21 08:36:40 -05:00
|
|
|
-type f \
|
|
|
|
-not -name \*~ \
|
2015-05-15 13:09:26 +10:00
|
|
|
-not -name \*.md \
|
2016-02-17 15:26:33 +01:00
|
|
|
-not -name stack-screenrc \
|
2016-03-07 14:00:58 +11:00
|
|
|
-not -name \*.orig \
|
|
|
|
-not -name \*.rej \
|
2015-05-15 13:09:26 +10:00
|
|
|
\( \
|
|
|
|
-name \*.sh -or \
|
2015-12-21 08:36:40 -05:00
|
|
|
-name \*rc -or \
|
2015-05-15 13:09:26 +10:00
|
|
|
-name functions\* -or \
|
2015-12-21 08:36:40 -05:00
|
|
|
-wholename \*/inc/\* -or \
|
|
|
|
-wholename \*/lib/\* \
|
|
|
|
\) \
|
2015-10-19 14:17:18 +11:00
|
|
|
-print0 | xargs -0 bashate -v -iE006 -eE005,E042"
|
2014-09-08 13:47:06 -07:00
|
|
|
|
|
|
|
[testenv:docs]
|
2021-05-11 11:04:32 +01:00
|
|
|
deps =
|
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
|
|
|
-r{toxinidir}/doc/requirements.txt
|
2021-05-12 16:53:15 +05:30
|
|
|
allowlist_externals = bash
|
2014-10-07 13:13:28 -07:00
|
|
|
setenv =
|
|
|
|
TOP_DIR={toxinidir}
|
2016-04-08 09:40:56 +10:00
|
|
|
commands =
|
2019-08-11 16:00:12 +02:00
|
|
|
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
|
|
|
|
2019-09-25 12:23:16 +09:00
|
|
|
[testenv:pdf-docs]
|
|
|
|
deps = {[testenv:docs]deps}
|
2021-05-12 16:53:15 +05:30
|
|
|
allowlist_externals =
|
2019-09-25 12:23:16 +09:00
|
|
|
make
|
|
|
|
commands =
|
|
|
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
|
|
|
make -C doc/build/pdf
|
2016-04-15 20:54:11 +02:00
|
|
|
|
|
|
|
[testenv:venv]
|
2017-12-18 11:11:03 -06:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2016-04-15 20:54:11 +02:00
|
|
|
commands = {posargs}
|