| 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 | 
| Tony Breeds | 31127a2 | 2015-05-15 13:09:26 +1000 | [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 | -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 Wienand | 46b0be3 | 2014-10-16 13:15:51 +1100 | [diff] [blame] | 27 | -print0 | xargs -0 bashate -v" | 
| Monty Taylor | 81fa6c7 | 2014-09-08 13:47:06 -0700 | [diff] [blame] | 28 |  | 
|  | 29 | [testenv:docs] | 
| Monty Taylor | ebb983d | 2014-10-07 13:13:28 -0700 | [diff] [blame] | 30 | deps = | 
|  | 31 | Pygments | 
|  | 32 | docutils | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 33 | sphinx>=1.1.2,<1.2 | 
|  | 34 | pbr>=0.6,!=0.7,<1.0 | 
|  | 35 | oslosphinx | 
| Sean M. Collins | 02ae50d | 2015-03-20 09:58:55 -0700 | [diff] [blame] | 36 | nwdiag | 
|  | 37 | blockdiag | 
|  | 38 | sphinxcontrib-blockdiag | 
|  | 39 | sphinxcontrib-nwdiag | 
| Monty Taylor | ebb983d | 2014-10-07 13:13:28 -0700 | [diff] [blame] | 40 | whitelist_externals = bash | 
|  | 41 | setenv = | 
|  | 42 | TOP_DIR={toxinidir} | 
|  | 43 | INSTALL_SHOCCO=true | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 44 | commands = | 
| Sean M. Collins | 09e550c | 2014-10-21 11:40:08 -0400 | [diff] [blame] | 45 | python setup.py build_sphinx | 
| Dean Troyer | b3fdb1c | 2014-11-17 12:45:09 -0600 | [diff] [blame] | 46 | bash tools/build_docs.sh |