diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2023-01-27 20:01:48 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2023-01-27 20:08:31 +0000 |
commit | 6152280fcc209c37632e1e6d78f58b7c4c9fb4bb (patch) | |
tree | dc124bc8d18a7fba22aca9683e45b052c34deac3 /.gitlab-ci/test-flatpak.sh | |
parent | 0f8a2e5428ece351914d25b7fcd91da4ff6c0aa7 (diff) | |
download | pygobject-6152280fcc209c37632e1e6d78f58b7c4c9fb4bb.tar.gz |
CI: try to make the flatpak tests run again
Half a year ago they broke due to some changes of either the
gnome-runtime-images docker images, or the contained flatpak, or
something else: https://gitlab.gnome.org/GNOME/gnome-runtime-images/-/issues/7
This creates a fake dbus system bus so flatpak run doesn't fail.
After this it turned out that pip install is now completely broken
in the sdk and it installs packages to a place where it can't find them
afterwards, so just use a venv instead.
Finally the pygobject test suite still crashes at some point,
but at least it's better then before.
Diffstat (limited to '.gitlab-ci/test-flatpak.sh')
-rwxr-xr-x | .gitlab-ci/test-flatpak.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/.gitlab-ci/test-flatpak.sh b/.gitlab-ci/test-flatpak.sh index b76eefa6..57b7f926 100755 --- a/.gitlab-ci/test-flatpak.sh +++ b/.gitlab-ci/test-flatpak.sh @@ -2,8 +2,7 @@ set -e -python3 -m pip install --user pytest pytest-faulthandler -# for some reason pip3 fails the first time now.. -# https://gitlab.com/freedesktop-sdk/freedesktop-sdk/issues/776 -python3 -m pip install --user pytest pytest-faulthandler -python3 setup.py test -s
\ No newline at end of file +python3 -m venv _venv +. _venv/bin/activate +python3 -m pip install pytest pytest-faulthandler +python3 setup.py test -s |