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] |
| 11 | deps = bashate |
| 12 | whitelist_externals = bash |
Ian Wienand | 46b0be3 | 2014-10-16 13:15:51 +1100 | [diff] [blame] | 13 | commands = 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 Troyer | bf2ad70 | 2015-03-09 15:16:10 -0500 | [diff] [blame] | 23 | -wholename \*/inc/\* \ # /inc files and |
Ian Wienand | 46b0be3 | 2014-10-16 13:15:51 +1100 | [diff] [blame] | 24 | -wholename \*/lib/\* \ # /lib files are shell, but |
| 25 | \) \ # have no extension |
| 26 | -print0 | xargs -0 bashate -v" |
Monty Taylor | 81fa6c7 | 2014-09-08 13:47:06 -0700 | [diff] [blame] | 27 | |
| 28 | [testenv:docs] |
Monty Taylor | ebb983d | 2014-10-07 13:13:28 -0700 | [diff] [blame] | 29 | deps = |
| 30 | Pygments |
| 31 | docutils |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 32 | sphinx>=1.1.2,<1.2 |
| 33 | pbr>=0.6,!=0.7,<1.0 |
| 34 | oslosphinx |
Monty Taylor | ebb983d | 2014-10-07 13:13:28 -0700 | [diff] [blame] | 35 | whitelist_externals = bash |
| 36 | setenv = |
| 37 | TOP_DIR={toxinidir} |
| 38 | INSTALL_SHOCCO=true |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 39 | commands = |
Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 40 | python setup.py build_sphinx |
Dean Troyer | b3fdb1c | 2014-11-17 12:45:09 -0600 | [diff] [blame] | 41 | bash tools/build_docs.sh |