X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=130e0dfd705d03abcfe321f0d0af68c2b8749a0a;hb=c5a09bf6161fd73b79791a0ec293a4ba7c38d1a5;hp=0e95bab0f4ea371dbe95fa8c2168f729f06e2b7a;hpb=0440ffcac18991395799e5aafc9243e028917ab6;p=functest.git diff --git a/tox.ini b/tox.ini index 0e95bab0f..130e0dfd7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,bandit,py27,perm,cover +envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,bandit,py27,py37,cover,perm [testenv] usedevelop = True @@ -18,7 +18,7 @@ commands = nosetests --with-xunit \ functest/tests/unit [testenv:docs] -basepython = python2.7 +basepython = python3.7 commands = doc8 \ --ignore-path api/build \ @@ -32,18 +32,18 @@ commands = sphinx-build -W -n -b html -c docs/lfreleng docs docs/_build/html [testenv:pep8] -basepython = python2.7 +basepython = python3.7 commands = flake8 [testenv:pylint] -basepython = python2.7 +basepython = python3.7 commands = pylint \ --ignore-imports=y --min-similarity-lines=10 \ --disable=locally-disabled functest [testenv:yamllint] -basepython = python2.7 +basepython = python3.7 files = .travis.yml docker @@ -57,15 +57,15 @@ commands = yamllint -s {[testenv:yamllint]files} [testenv:ansiblelint] -basepython = python2.7 +basepython = python3.7 commands = ansible-lint ansible/site.yml -[testenv:py36] +[testenv:py37] commands = nosetests functest/tests/unit [testenv:bashate] -basepython = python2.7 +basepython = python3.7 files = functest/opnfv_tests/openstack/cinder/write_data.sh functest/opnfv_tests/openstack/cinder/read_data.sh @@ -73,15 +73,15 @@ files = functest/ci/convert_images.sh functest/ci/download_images.sh build.sh -commands = bashate {[testenv:bashate]files} +commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files} [testenv:bandit] -basepython = python2.7 +basepython = python3.7 commands = bandit -r functest -x tests -n 5 -ll -s B601,B602 [testenv:cover] -basepython = python2.7 +basepython = python3.7 dirs = functest/tests/unit/odl functest/tests/unit/openstack/vping @@ -94,7 +94,7 @@ commands = nosetests --with-coverage --cover-tests \ --cover-min-percentage 100 {[testenv:cover]dirs} [testenv:perm] -basepython = python2.7 +basepython = python3.7 whitelist_externals = bash path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*' commands =