blob: f76e2565eb332616ce4c5ea23f45a758d720d496 [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 \
Sean Dague5e5a29c2015-04-03 08:52:29 -040023 -wholename \*/inc/\* -or \ # /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
Sean M. Collins02ae50d2015-03-20 09:58:55 -070035 nwdiag
36 blockdiag
37 sphinxcontrib-blockdiag
38 sphinxcontrib-nwdiag
Monty Taylorebb983d2014-10-07 13:13:28 -070039whitelist_externals = bash
40setenv =
41 TOP_DIR={toxinidir}
42 INSTALL_SHOCCO=true
Sean M. Collins09e550c2014-10-21 11:40:08 -040043commands =
Sean M. Collins09e550c2014-10-21 11:40:08 -040044 python setup.py build_sphinx
Dean Troyerb3fdb1c2014-11-17 12:45:09 -060045 bash tools/build_docs.sh