X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=313f1eca27f3e8c537194b7d99334158d3acfbc9;hb=8aec0b7b8faeea7f22019cb18319e88faeda98b5;hp=882543d0ceecd9d02befd600773a3dfdd7b5a074;hpb=449679aeee27e08d5e47a7d5d76857b4827e263e;p=yardstick.git diff --git a/tox.ini b/tox.ini index 882543d0c..313f1eca2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,21 +1,25 @@ [tox] minversion = 2.0 skipsdist = True -envlist = py27,py3,pep8 +envlist = py{27,3},pep8,functional{,-py3},coverage [testenv] usedevelop=True -passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY +passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY BRANCH +setenv = + VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = /bin/bash ./run_tests.sh whitelist_externals = /bin/bash [testenv:py27] -# don't re-run coverage on both py27 py3, it takes too long -setenv = - SKIP_COVERAGE=1 +commands = + /bin/bash {toxinidir}/tools/run_tests.sh --unit + +[testenv:py3] +basepython = python3 +commands = {[testenv:py27]commands} [testenv:pep8] # for gate testing, scans only the files changed in the last commit @@ -27,6 +31,19 @@ commands = commands = /bin/bash tools/coding-checks.sh --pylint '{posargs}' +[testenv:coverage] +basepython = python3 +commands = + /bin/bash {toxinidir}/tools/run_tests.sh --coverage + +[testenv:functional] +commands = + /bin/bash {toxinidir}/tools/run_tests.sh --functional + +[testenv:functional-py3] +basepython = python3 +commands = {[testenv:functional]commands} + [testenv:os-requirements] commands = python {toxinidir}/tools/os-requirements-check.py {envdir}