summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-03-06 17:34:55 +0000
committerSimon McVittie <smcv@debian.org>2016-03-06 17:39:36 +0000
commit007ea1d228b849e192e3a471bb3c14292b897b0e (patch)
tree5d2c562bc8a6a10a89382b9e779049719f48119a
parent602064459995b89d169d7e138691a96d4190b614 (diff)
downloaddbus-python-007ea1d228b849e192e3a471bb3c14292b897b0e.tar.gz
ci-build: test the setup.py glue as well as the Autotools build
Signed-off-by: Simon McVittie <smcv@debian.org>
-rwxr-xr-xtools/ci-build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/ci-build.sh b/tools/ci-build.sh
index 13dd4d7..9bdda39 100755
--- a/tools/ci-build.sh
+++ b/tools/ci-build.sh
@@ -115,3 +115,10 @@ dbus_ci_pyversion="$(${PYTHON:-python} -c 'import distutils.sysconfig; print(dis
export PYTHONPATH="$prefix/lib/python$dbus_ci_pyversion/site-packages:$PYTHONPATH"
export XDG_DATA_DIRS="$prefix/share:/usr/local/share:/usr/share"
gnome-desktop-testing-runner dbus-python
+
+# re-run the tests with dbus-python only installed via pip
+if [ -n "$VIRTUAL_ENV" ]; then
+ rm -fr "${prefix}/lib/python$dbus_ci_pyversion/site-packages"
+ pip install -vvv "${builddir}"/dbus-python-*.tar.gz
+ gnome-desktop-testing-runner dbus-python
+fi