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