blob: bdfd29dd14c2666fb440077fe4bf8faa18f484f0 [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 Wienand5cdee8d2015-10-19 14:17:18 +110015 {env:BASHATE_INSTALL_PATH:bashate==0.3.2}
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 \
24 \( \
25 -name \*.sh -or \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110026 -name \*.orig -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050027 -name \*rc -or \
Tony Breeds31127a22015-05-15 13:09:26 +100028 -name functions\* -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050029 -wholename \*/inc/\* -or \
30 -wholename \*/lib/\* \
31 \) \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110032 -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
Monty Taylor81fa6c72014-09-08 13:47:06 -070033
34[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070035deps =
36 Pygments
37 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040038 sphinx>=1.1.2,<1.2
39 pbr>=0.6,!=0.7,<1.0
40 oslosphinx
Sean M. Collins02ae50d2015-03-20 09:58:55 -070041 nwdiag
42 blockdiag
43 sphinxcontrib-blockdiag
44 sphinxcontrib-nwdiag
Monty Taylorebb983d2014-10-07 13:13:28 -070045whitelist_externals = bash
46setenv =
47 TOP_DIR={toxinidir}
48 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040049commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040050 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060051 bash tools/build_docs.sh