blob: bc84928d956e066172b23e325f8a7a24cd9b4a4c [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
Ian Wienand46b0be32014-10-16 13:15:51 +110013commands = bash -c "find {toxinidir} \
14 -not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
15 -not \( -type d -name doc -prune \) \ # skip documentation
16 -type f \ # only files
17 -not -name \*~ \ # skip editors, readme, etc
18 -not -name \*.md \
19 \( \
20 -name \*.sh -or \
21 -name \*rc -or \
22 -name functions\* -or \
Dean Troyerbf2ad702015-03-09 15:16:10 -050023 -wholename \*/inc/\* \ # /inc files and
Ian Wienand46b0be32014-10-16 13:15:51 +110024 -wholename \*/lib/\* \ # /lib files are shell, but
25 \) \ # have no extension
26 -print0 | xargs -0 bashate -v"
Monty Taylor81fa6c72014-09-08 13:47:06 -070027
28[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070029deps =
30 Pygments
31 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040032 sphinx>=1.1.2,<1.2
33 pbr>=0.6,!=0.7,<1.0
34 oslosphinx
Monty Taylorebb983d2014-10-07 13:13:28 -070035whitelist_externals = bash
36setenv =
37 TOP_DIR={toxinidir}
38 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040039commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040040 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060041 bash tools/build_docs.sh