From c93ba9ac8d27b1612b79560a65c843cdfe39190d Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Tue, 10 Jul 2018 16:15:47 -0400 Subject: [PATCH 1/2] add tox environments that have the user specify what tests should be run --- tox.ini | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tox.ini b/tox.ini index 96485516c0c..2cfd7589799 100644 --- a/tox.ini +++ b/tox.ini @@ -103,6 +103,26 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/dev_requirements.txt +[testenv:explicit-py27] +basepython = python2.7 +passenv = * +setenv = + HOME=/root/ +commands = /bin/bash -c '{envpython} $(which nosetests) -v --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov {posargs}' +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/dev_requirements.txt + +[testenv:explicit-py36] +basepython = python3.6 +passenv = * +setenv = + HOME=/root/ +commands = /bin/bash -c '{envpython} $(which nosetests) -v --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov {posargs}' +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/dev_requirements.txt + [testenv:pywin] basepython = {env:PYTHON:}\python.exe passenv = * From 1cfdd8786288740b8d59c1a9e4d9af3c7fc0c259 Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Wed, 11 Jul 2018 09:14:49 -0400 Subject: [PATCH 2/2] PR feedback --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 2cfd7589799..357ca429403 100644 --- a/tox.ini +++ b/tox.ini @@ -108,7 +108,7 @@ basepython = python2.7 passenv = * setenv = HOME=/root/ -commands = /bin/bash -c '{envpython} $(which nosetests) -v --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov {posargs}' +commands = /bin/bash -c '{envpython} $(which nosetests) -v {posargs}' deps = -r{toxinidir}/requirements.txt -r{toxinidir}/dev_requirements.txt @@ -118,7 +118,7 @@ basepython = python3.6 passenv = * setenv = HOME=/root/ -commands = /bin/bash -c '{envpython} $(which nosetests) -v --with-coverage --cover-branches --cover-html --cover-html-dir=htmlcov {posargs}' +commands = /bin/bash -c '{envpython} $(which nosetests) -v {posargs}' deps = -r{toxinidir}/requirements.txt -r{toxinidir}/dev_requirements.txt