X-Git-Url: https://gerrit.onap.org/r/gitweb?p=multicloud%2Fframework.git;a=blobdiff_plain;f=multivimbroker%2Ftox.ini;h=ef0387e7d3ac94fef48bf28e223f4a1e7b53163d;hp=88d43d95fc95be53528ce9e1dbb1560d25095509;hb=HEAD;hpb=67430600410e312c2db5a6a7709da8e45a5245fa diff --git a/multivimbroker/tox.ini b/multivimbroker/tox.ini index 88d43d9..7ba8967 100644 --- a/multivimbroker/tox.ini +++ b/multivimbroker/tox.ini @@ -1,14 +1,45 @@ [tox] -envlist = py27,pep8 +envlist = py36,pep8,cover skipsdist = true [tox:jenkins] downloadcache = ~/cache/pip [testenv] -deps = -r{toxinidir}/requirements.txt -commands = coverage run --branch manage.py test multivimbroker +basepython = + py36: python3 + pep8: python3 + cover: python3 +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands = + /usr/bin/find . -type f -name "*.py[c|o]" -delete + python manage.py test multivimbroker [testenv:pep8] deps=flake8 commands=flake8 + +# [testenv:py27] +# commands = +# {[testenv]commands} + +[testenv:cover] +setenv= + DJANGO_SETTINGS_MODULE = multivimbroker.settings-cover +commands = + coverage erase + {[testenv]commands} + coverage xml -i --omit="*/api_v2/*,./venv-tox/*,./.tox/*,*tests*,*site-packages*" + +[testenv:rstcheck] +deps = rstcheck +whitelist_externals = bash +commands = bash -c "find ../docs -not -path {toxinidir}/.tox/\* \ + -name \*.rst -type f -print0 | xargs -0 rstcheck --report warning" + +[testenv:docs] +deps = sphinx +commands = sphinx-build -b html ../docs/ ../docs/html