blob: 0df9877ba8c57632251f656446e207aa8dccca85 [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 =
12 {env:BASHATE_INSTALL_PATH:bashate==0.3.1}
K Jonathan Harker0c256ab2014-08-20 12:49:32 -070013whitelist_externals = bash
Tony Breeds31127a22015-05-15 13:09:26 +100014commands = bash -c "find {toxinidir} \
15 -not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
16 -not \( -type d -name doc -prune \) \ # skip documentation
17 -not \( -type d -name shocco -prune \) \ # skip shocco
18 -type f \ # only files
19 -not -name \*~ \ # skip editors, readme, etc
20 -not -name \*.md \
21 \( \
22 -name \*.sh -or \
23 -name \*rc -or \
24 -name functions\* -or \
25 -wholename \*/inc/\* -or \ # /inc files and
26 -wholename \*/lib/\* \ # /lib files are shell, but
27 \) \ # have no extension
Ian Wienandf80c37d2015-10-06 20:18:15 +110028 -print0 | xargs -0 bashate -v -iE006"
Monty Taylor81fa6c72014-09-08 13:47:06 -070029
30[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070031deps =
32 Pygments
33 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040034 sphinx>=1.1.2,<1.2
35 pbr>=0.6,!=0.7,<1.0
36 oslosphinx
Sean M. Collins02ae50d2015-03-20 09:58:55 -070037 nwdiag
38 blockdiag
39 sphinxcontrib-blockdiag
40 sphinxcontrib-nwdiag
Monty Taylorebb983d2014-10-07 13:13:28 -070041whitelist_externals = bash
42setenv =
43 TOP_DIR={toxinidir}
44 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040045commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040046 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060047 bash tools/build_docs.sh