X-Git-Url: https://gerrit.onap.org/r/gitweb?p=multicloud%2Fframework.git;a=blobdiff_plain;f=multivimbroker%2Ftox.ini;h=fe4e065c925fbeee8eaacf1d0cbde79ed743ca46;hp=92923011475e3360b4846ea72ea89d3f35f380c0;hb=04ffb3be88dff15794ac065dce7cea51924842c9;hpb=b1b0386b5ed988fbbf25e326c3d0ce951eff07cd diff --git a/multivimbroker/tox.ini b/multivimbroker/tox.ini index 9292301..fe4e065 100644 --- a/multivimbroker/tox.ini +++ b/multivimbroker/tox.ini @@ -1,10 +1,41 @@ [tox] -envlist = py27 +envlist = py36,pep8 skipsdist = true [tox:jenkins] downloadcache = ~/cache/pip [testenv] -deps = -r{toxinidir}/requirements.txt -commands = coverage run --branch manage.py test multivimbroker +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 + +[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