summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2019-12-06 15:06:18 +0000
committerStephen Finucane <stephenfin@redhat.com>2019-12-06 15:06:18 +0000
commitca925b108c265868598dda2608bdd58ac144bb20 (patch)
tree25d666a024377f5bc84ff5120ef81b2e5ea18285
parent91fb51814427bd8aaabf807a0fa284ef6a944c31 (diff)
downloadoslo-context-ca925b108c265868598dda2608bdd58ac144bb20.tar.gz
tox: Stop using 'python setup.py test'
pbr has deprecated this. Call stestr directly instead. Change-Id: I26628e4734c6d7a911fbe16ad753173a36fd8dab Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
-rw-r--r--[-rwxr-xr-x]doc/source/conf.py0
-rw-r--r--tox.ini9
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 11d61e5..11d61e5 100755..100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
diff --git a/tox.ini b/tox.ini
index 2d3334c..f5d0f36 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,6 @@ minversion = 2.0
envlist = py27,py37,pep8
[testenv]
-install_command = pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@@ -35,7 +34,13 @@ commands =
[testenv:cover]
basepython = python3
-commands = python setup.py test --coverage --coverage-package-name=oslo_context --testr-args='{posargs}'
+setenv =
+ PYTHON=coverage run --source oslo_context --parallel-mode
+commands =
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[flake8]
# E123, E125 skipped as they are invalid PEP-8.