blob: e3d19ce60c21697696039fde16f0cf54dcab0e9f [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]
11deps = bashate
12whitelist_externals = bash
Tony Breeds31127a22015-05-15 13:09:26 +100013commands = bash -c "find {toxinidir} \
14 -not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
15 -not \( -type d -name doc -prune \) \ # skip documentation
16 -not \( -type d -name shocco -prune \) \ # skip shocco
17 -type f \ # only files
18 -not -name \*~ \ # skip editors, readme, etc
19 -not -name \*.md \
20 \( \
21 -name \*.sh -or \
22 -name \*rc -or \
23 -name functions\* -or \
24 -wholename \*/inc/\* -or \ # /inc files and
25 -wholename \*/lib/\* \ # /lib files are shell, but
26 \) \ # have no extension
Ian Wienand46b0be32014-10-16 13:15:51 +110027 -print0 | xargs -0 bashate -v"
Monty Taylor81fa6c72014-09-08 13:47:06 -070028
29[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070030deps =
31 Pygments
32 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040033 sphinx>=1.1.2,<1.2
34 pbr>=0.6,!=0.7,<1.0
35 oslosphinx
Monty Taylorebb983d2014-10-07 13:13:28 -070036whitelist_externals = bash
37setenv =
38 TOP_DIR={toxinidir}
39 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040040commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040041 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060042 bash tools/build_docs.sh