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