2014-08-20 12:49:32 -07:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
|
|
|
envlist = bashate
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = False
|
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
|
|
|
|
[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 =
|
2016-04-26 17:53:45 +10:00
|
|
|
{env:BASHATE_INSTALL_PATH:bashate==0.5.1}
|
2014-08-20 12:49:32 -07:00
|
|
|
whitelist_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]
|
2014-10-07 13:13:28 -07:00
|
|
|
deps =
|
|
|
|
Pygments
|
|
|
|
docutils
|
2014-10-21 11:40:08 -04:00
|
|
|
sphinx>=1.1.2,<1.2
|
|
|
|
pbr>=0.6,!=0.7,<1.0
|
|
|
|
oslosphinx
|
2015-03-20 09:58:55 -07:00
|
|
|
nwdiag
|
|
|
|
blockdiag
|
|
|
|
sphinxcontrib-blockdiag
|
|
|
|
sphinxcontrib-nwdiag
|
2014-10-07 13:13:28 -07:00
|
|
|
whitelist_externals = bash
|
|
|
|
setenv =
|
|
|
|
TOP_DIR={toxinidir}
|
2016-04-08 09:40:56 +10:00
|
|
|
commands =
|
|
|
|
python setup.py build_sphinx
|
2016-04-15 20:54:11 +02:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
deps =
|
|
|
|
pbr>=0.6,!=0.7,<1.0
|
|
|
|
sphinx>=1.1.2,<1.2
|
|
|
|
oslosphinx
|
|
|
|
blockdiag
|
|
|
|
sphinxcontrib-blockdiag
|
|
|
|
sphinxcontrib-nwdiag
|
|
|
|
commands = {posargs}
|