Merge "Release Note in Casablanca"
[multicloud/framework.git] / multivimbroker / tox.ini
1 [tox]
2 envlist = py27,pep8
3 skipsdist = true
4
5 [tox:jenkins]
6 downloadcache = ~/cache/pip
7
8 [testenv]
9 deps = -r{toxinidir}/requirements.txt
10 commands =
11   /usr/bin/find . -type f -name "*.py[c|o]" -delete
12   python manage.py test multivimbroker
13
14 [testenv:pep8]
15 deps=flake8
16 commands=flake8
17
18 [testenv:py27]
19 commands =
20   {[testenv]commands}
21
22 [testenv:cover]
23 setenv=
24   DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover
25 commands =
26   coverage erase
27   {[testenv]commands}
28   coverage xml -i
29
30 [testenv:rstcheck]
31 deps = rstcheck
32 whitelist_externals = bash
33 commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \
34    -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning"
35
36 [testenv:docs]
37 deps = sphinx
38 commands = sphinx-build -b html ../docs/ ../docs/html