blob: 07e8a8faab6dd9a1c114a6267672bd8a3aef46ef [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 Wienandb14f96f2015-10-15 11:50:10 +110011deps =
Ian Wienand5cdee8d2015-10-19 14:17:18 +110012 {env:BASHATE_INSTALL_PATH:bashate==0.3.2}
K Jonathan Harker0c256ab2014-08-20 12:49:32 -070013whitelist_externals = bash
Tony Breeds31127a22015-05-15 13:09:26 +100014commands = bash -c "find {toxinidir} \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050015 -not \( -type d -name .?\* -prune \) \
16 -not \( -type d -name doc -prune \) \
17 -not \( -type d -name shocco -prune \) \
18 -type f \
19 -not -name \*~ \
Tony Breeds31127a22015-05-15 13:09:26 +100020 -not -name \*.md \
Jordan Pittier33df8952016-02-17 15:26:33 +010021 -not -name stack-screenrc \
Tony Breeds31127a22015-05-15 13:09:26 +100022 \( \
23 -name \*.sh -or \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110024 -name \*.orig -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050025 -name \*rc -or \
Tony Breeds31127a22015-05-15 13:09:26 +100026 -name functions\* -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050027 -wholename \*/inc/\* -or \
28 -wholename \*/lib/\* \
29 \) \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110030 -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
Monty Taylor81fa6c72014-09-08 13:47:06 -070031
32[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070033deps =
34 Pygments
35 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040036 sphinx>=1.1.2,<1.2
37 pbr>=0.6,!=0.7,<1.0
38 oslosphinx
Sean M. Collins02ae50d2015-03-20 09:58:55 -070039 nwdiag
40 blockdiag
41 sphinxcontrib-blockdiag
42 sphinxcontrib-nwdiag
Monty Taylorebb983d2014-10-07 13:13:28 -070043whitelist_externals = bash
44setenv =
45 TOP_DIR={toxinidir}
46 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040047commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040048 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060049 bash tools/build_docs.sh