From f8ca5b8acf846b3f7c0622987566ea2c6b86e6c7 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Wed, 11 Dec 2019 04:22:53 +0100 Subject: [PATCH] tox: add py3 env Signed-off-by: Kyr Shatskyy --- tox.ini | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index 82245dd2e7..953c42330d 100644 --- a/tox.ini +++ b/tox.ini @@ -9,12 +9,29 @@ deps= -r{toxinidir}/requirements.txt mock==2.0.0 fudge - pytest-cov==1.6 - coverage==3.7.1 + pytest-cov==2.8.1 + coverage==4.5.4 commands= py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts} + +[testenv:py3] +basepython=python3 +install_command = pip install --upgrade {opts} {packages} +passenv = HOME +sitepackages=True +deps= + -r{toxinidir}/requirements.txt + mock==2.0.0 + fudge + pytest-cov==2.8.1 + coverage==4.5.4 + +commands= + py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts} + + [testenv:py27-integration] install_command = pip install --upgrade {opts} {packages} passenv = HOME OS_REGION_NAME OS_AUTH_URL OS_TENANT_ID OS_TENANT_NAME OS_PASSWORD OS_USERNAME @@ -23,8 +40,8 @@ deps= -r{toxinidir}/requirements.txt mock==2.0.0 fudge - pytest-cov==1.6 - coverage==3.7.1 + pytest-cov==2.8.1 + coverage==4.5.4 commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology/test/integration teuthology/orchestra/test/integration} basepython=python2.7 -- 2.39.5