tox.ini
0c256abd
 [tox]
 minversion = 1.6
 skipsdist = True
 envlist = bashate
 
 [testenv]
 usedevelop = False
53c2f6fe
 basepython = python3
0c256abd
 
 [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 =
53c2f6fe
    {env:BASHATE_INSTALL_PATH:bashate==2.0.0}
0c256abd
 whitelist_externals = bash
31127a2a
 commands = bash -c "find {toxinidir}             \
f59e6df2
          -not \( -type d -name .?\* -prune \)    \
          -not \( -type d -name doc -prune \)     \
84d2298d
          -not \( -type f -name localrc -prune \) \
f59e6df2
          -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]
4187d2fc
 deps = -r{toxinidir}/doc/requirements.txt
ebb983d3
 whitelist_externals = bash
 setenv =
   TOP_DIR={toxinidir}
7cd16ce4
 commands =
8dd89e52
   sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
 
12e5ddcc
 [testenv:pdf-docs]
 deps = {[testenv:docs]deps}
 whitelist_externals =
    make
 commands =
    sphinx-build -W -b latex doc/source doc/build/pdf
    make -C doc/build/pdf
fdb38831
 
 [testenv:venv]
4187d2fc
 deps = -r{toxinidir}/doc/requirements.txt
fdb38831
 commands = {posargs}