diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-21 15:16:31 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-05-21 15:20:48 +0200 |
commit | 3b008aed434448a543611c73afa282596f8b3f5d (patch) | |
tree | 52ec2174f4b445438c3830c545fbf8f3b351f46a /tox.ini | |
parent | cb7c5c464adb4bf302e50cac7c989afe54640e47 (diff) |
Check python3 support when running tox
It only tests testcase, feature and odl which supports python3.
It creates a temporary requirements.py3.txt which will be safely removed
when we stop using subprocess32 [1] and robotframework-sshlibrary.
[1] https://jira.opnfv.org/browse/FUNCTEST-827
Change-Id: I92021dcb4aca03f64e2441e3bcff34675a3ae879
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = docs,pep8,pylint,py27 +envlist = docs,pep8,pylint,py35,py27 [testenv] usedevelop = True @@ -25,9 +25,18 @@ deps = commands = flake8 [testenv:pylint] -basepython=python2.7 -deps= +basepython = python2.7 +deps = {[testenv]deps} whitelist_externals = bash -commands=bash -c \ +commands = bash -c \ "pylint --persistent=n functest | sed -ne '/Raw metrics/,//p'" + +[testenv:py35] +dirs = + functest/tests/unit/core + functest/tests/unit/odl +deps = + -r{toxinidir}/requirements.py3.txt + -r{toxinidir}/test-requirements.txt +commands = nosetests --exclude=test_vnf {[testenv:py35]dirs} |