tox.ini
0c256abd
 [tox]
 minversion = 1.6
 skipsdist = True
 envlist = bashate
 
 [testenv]
 usedevelop = False
 install_command = pip install {opts} {packages}
 
 [testenv:bashate]
7ae97298
 # if you want to test out some changes you have made to bashate
 # against devstack, just set BASHATE_INSTALL_PATH=/path/... to your
 # modified bashate tree
b14f96fb
 deps =
c709d50a
    {env:BASHATE_INSTALL_PATH:bashate==0.5.0}
0c256abd
 whitelist_externals = bash
31127a2a
 commands = bash -c "find {toxinidir}             \
f59e6df2
          -not \( -type d -name .?\* -prune \)    \
          -not \( -type d -name doc -prune \)     \
          -not \( -type d -name shocco -prune \)  \
          -type f                                 \
          -not -name \*~                          \
31127a2a
          -not -name \*.md                        \
33df895f
          -not -name stack-screenrc               \
c709d50a
          -not -name \*.orig                      \
          -not -name \*.rej                       \
31127a2a
          \(                                      \
           -name \*.sh -or                        \
f59e6df2
           -name \*rc -or                         \
31127a2a
           -name functions\* -or                  \
f59e6df2
           -wholename \*/inc/\* -or               \
           -wholename \*/lib/\*                   \
          \)                                      \
5cdee8dd
          -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
81fa6c7b
 
 [testenv:docs]
ebb983d3
 deps =
    Pygments
    docutils
09e550c3
    sphinx>=1.1.2,<1.2
    pbr>=0.6,!=0.7,<1.0
    oslosphinx
02ae50dc
    nwdiag
    blockdiag
    sphinxcontrib-blockdiag
    sphinxcontrib-nwdiag
ebb983d3
 whitelist_externals = bash
 setenv =
   TOP_DIR={toxinidir}
   INSTALL_SHOCCO=true
09e550c3
 commands = 
 	python setup.py build_sphinx
b3fdb1c9
 	bash tools/build_docs.sh