summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2018-04-04 21:57:33 +0100
committerSorin Sbarnea <ssbarnea@redhat.com>2018-04-05 12:14:13 +0100
commitc8ba7a5a0f93a3e6be3ee1d824394fc5d89b3d47 (patch)
tree921b41553330d500226ddfe283e3c4fc0b682c96 /tox.ini
parent3b120c3babb47c34559db101139fa6170df7516d (diff)
downloadpython-jenkins-job-builder-c8ba7a5a0f93a3e6be3ee1d824394fc5d89b3d47.tar.gz
python-jenkins-job-builder-c8ba7a5a0f93a3e6be3ee1d824394fc5d89b3d47.tar.xz
python-jenkins-job-builder-c8ba7a5a0f93a3e6be3ee1d824394fc5d89b3d47.zip
Replace testr with stestr
Switch to use stestr which is maintained as opposed to testrepository (testr) which became a defunct project. Change-Id: I47f628a7d224189362f2b2cfd9fe4c54af198cde
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 9 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index e6fc39fe..2e641e9d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -20,7 +20,7 @@ deps = -r{toxinidir}/test-requirements.txt
commands =
- find . -type f -name "*.pyc" -delete
- find . -type d -name "__pycache__" -delete
- python setup.py testr --slowest --testr-args='{posargs}'
+ stestr run --slowest {posargs}
whitelist_externals =
bash
find
@@ -28,17 +28,21 @@ whitelist_externals =
[testenv:tips]
# tests what happens with unreleased version of dependencies, like python-jenkins
install_command = pip install -U {opts} {packages}
-ignore_outcome = true
commands =
bash -c "if [ -d {toxinidir}/../python-jenkins ]; then \
pip install -q -U -e 'git+file://{toxinidir}/../python-jenkins#egg=python-jenkins' ; else \
pip install -q -U -e 'git+https://git.openstack.org/openstack/python-jenkins@master#egg=python-jenkins' ; fi "
- python setup.py testr --slowest --testr-args='{posargs}'
+ stestr run --slowest {posargs}
[testenv:cover]
+setenv =
+ {[testenv]setenv}
+ PYTHON=coverage run --source jenkins_jobs --parallel-mode
commands =
- python setup.py test --coverage --coverage-package-name=jenkins_jobs
- coverage report
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:pep8]
commands = flake8