K Jonathan Harker | 0c256ab | 2014-08-20 12:49:32 -0700 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
| 3 | skipsdist = True |
| 4 | envlist = bashate |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = False |
| 8 | install_command = pip install {opts} {packages} |
| 9 | |
| 10 | [testenv:bashate] |
Ian Wienand | b14f96f | 2015-10-15 11:50:10 +1100 | [diff] [blame^] | 11 | deps = |
| 12 | {env:BASHATE_INSTALL_PATH:bashate==0.3.1} |
K Jonathan Harker | 0c256ab | 2014-08-20 12:49:32 -0700 | [diff] [blame] | 13 | whitelist_externals = bash |
Tony Breeds | 31127a2 | 2015-05-15 13:09:26 +1000 | [diff] [blame] | 14 | commands = 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 Wienand | f80c37d | 2015-10-06 20:18:15 +1100 | [diff] [blame] | 28 | -print0 | xargs -0 bashate -v -iE006" |
Monty Taylor | 81fa6c7 | 2014-09-08 13:47:06 -0700 | [diff] [blame] | 29 | |
| 30 | [testenv:docs] |
Monty Taylor | ebb983d | 2014-10-07 13:13:28 -0700 | [diff] [blame] | 31 | deps = |
| 32 | Pygments |
| 33 | docutils |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 34 | sphinx>=1.1.2,<1.2 |
| 35 | pbr>=0.6,!=0.7,<1.0 |
| 36 | oslosphinx |
Sean M. Collins | 02ae50d | 2015-03-20 09:58:55 -0700 | [diff] [blame] | 37 | nwdiag |
| 38 | blockdiag |
| 39 | sphinxcontrib-blockdiag |
| 40 | sphinxcontrib-nwdiag |
Monty Taylor | ebb983d | 2014-10-07 13:13:28 -0700 | [diff] [blame] | 41 | whitelist_externals = bash |
| 42 | setenv = |
| 43 | TOP_DIR={toxinidir} |
| 44 | INSTALL_SHOCCO=true |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 45 | commands = |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 46 | python setup.py build_sphinx |
Dean Troyer | b3fdb1c | 2014-11-17 12:45:09 -0600 | [diff] [blame] | 47 | bash tools/build_docs.sh |