blob: ef557fbffe016687c75ee29ffb910dce29926905 [file] [log] [blame]
K Jonathan Harker0c256ab2014-08-20 12:49:32 -07001[tox]
2minversion = 1.6
3skipsdist = True
4envlist = bashate
5
6[testenv]
7usedevelop = False
8install_command = pip install {opts} {packages}
9
10[testenv:bashate]
Ian Wienand7ae97292016-02-16 14:50:53 +110011# if you want to test out some changes you have made to bashate
12# against devstack, just set BASHATE_INSTALL_PATH=/path/... to your
13# modified bashate tree
Ian Wienandb14f96f2015-10-15 11:50:10 +110014deps =
Ian Wienand76d05402016-02-16 14:35:51 +110015 {env:BASHATE_INSTALL_PATH:bashate==0.4.0}
K Jonathan Harker0c256ab2014-08-20 12:49:32 -070016whitelist_externals = bash
Tony Breeds31127a22015-05-15 13:09:26 +100017commands = bash -c "find {toxinidir} \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050018 -not \( -type d -name .?\* -prune \) \
19 -not \( -type d -name doc -prune \) \
20 -not \( -type d -name shocco -prune \) \
21 -type f \
22 -not -name \*~ \
Tony Breeds31127a22015-05-15 13:09:26 +100023 -not -name \*.md \
Jordan Pittier33df8952016-02-17 15:26:33 +010024 -not -name stack-screenrc \
Tony Breeds31127a22015-05-15 13:09:26 +100025 \( \
26 -name \*.sh -or \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110027 -name \*.orig -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050028 -name \*rc -or \
Tony Breeds31127a22015-05-15 13:09:26 +100029 -name functions\* -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050030 -wholename \*/inc/\* -or \
31 -wholename \*/lib/\* \
32 \) \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110033 -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
Monty Taylor81fa6c72014-09-08 13:47:06 -070034
35[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070036deps =
37 Pygments
38 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040039 sphinx>=1.1.2,<1.2
40 pbr>=0.6,!=0.7,<1.0
41 oslosphinx
Sean M. Collins02ae50d2015-03-20 09:58:55 -070042 nwdiag
43 blockdiag
44 sphinxcontrib-blockdiag
45 sphinxcontrib-nwdiag
Monty Taylorebb983d2014-10-07 13:13:28 -070046whitelist_externals = bash
47setenv =
48 TOP_DIR={toxinidir}
49 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040050commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040051 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060052 bash tools/build_docs.sh