blob: 55a06d0cae7b3d49bac07cbba6612b1d904237d0 [file] [log] [blame]
K Jonathan Harker0c256ab2014-08-20 12:49:32 -07001[tox]
2minversion = 1.6
3skipsdist = True
4envlist = bashate
5
6[testenv]
7usedevelop = False
8install_command = pip install {opts} {packages}
9
10[testenv:bashate]
Ian Wienand7ae97292016-02-16 14:50:53 +110011# if you want to test out some changes you have made to bashate
12# against devstack, just set BASHATE_INSTALL_PATH=/path/... to your
13# modified bashate tree
Ian Wienandb14f96f2015-10-15 11:50:10 +110014deps =
Ian Wienandc8af4072016-04-26 17:53:45 +100015 {env:BASHATE_INSTALL_PATH:bashate==0.5.1}
K Jonathan Harker0c256ab2014-08-20 12:49:32 -070016whitelist_externals = bash
Tony Breeds31127a22015-05-15 13:09:26 +100017commands = bash -c "find {toxinidir} \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050018 -not \( -type d -name .?\* -prune \) \
19 -not \( -type d -name doc -prune \) \
Waldemar Znoinski84d22982016-03-24 12:27:53 +000020 -not \( -type f -name localrc -prune \) \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050021 -type f \
22 -not -name \*~ \
Tony Breeds31127a22015-05-15 13:09:26 +100023 -not -name \*.md \
Jordan Pittier33df8952016-02-17 15:26:33 +010024 -not -name stack-screenrc \
Ian Wienandc709d502016-03-07 14:00:58 +110025 -not -name \*.orig \
26 -not -name \*.rej \
Tony Breeds31127a22015-05-15 13:09:26 +100027 \( \
28 -name \*.sh -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050029 -name \*rc -or \
Tony Breeds31127a22015-05-15 13:09:26 +100030 -name functions\* -or \
Davanum Srinivasf59e6df2015-12-21 08:36:40 -050031 -wholename \*/inc/\* -or \
32 -wholename \*/lib/\* \
33 \) \
Ian Wienand5cdee8d2015-10-19 14:17:18 +110034 -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
Monty Taylor81fa6c72014-09-08 13:47:06 -070035
36[testenv:docs]
Monty Taylorebb983d2014-10-07 13:13:28 -070037deps =
38 Pygments
39 docutils
Sean M. Collins09e550c2014-10-21 11:40:08 -040040 sphinx>=1.1.2,<1.2
41 pbr>=0.6,!=0.7,<1.0
42 oslosphinx
Sean M. Collins02ae50d2015-03-20 09:58:55 -070043 nwdiag
44 blockdiag
45 sphinxcontrib-blockdiag
46 sphinxcontrib-nwdiag
Monty Taylorebb983d2014-10-07 13:13:28 -070047whitelist_externals = bash
48setenv =
49 TOP_DIR={toxinidir}
Ian Wienand7cd16ce2016-04-08 09:40:56 +100050commands =
51 python setup.py build_sphinx
Andreas Jaegerfdb38832016-04-15 20:54:11 +020052
53[testenv:venv]
54deps =
55 pbr>=0.6,!=0.7,<1.0
56 sphinx>=1.1.2,<1.2
57 oslosphinx
58 blockdiag
59 sphinxcontrib-blockdiag
60 sphinxcontrib-nwdiag
61commands = {posargs}