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