-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add a context for testing flatpak
This was part of the philosophy behind https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests - libraries like libostree don't need to replicate everything in unit tests, we can use the tests from our dependencies directly too. We'll also get API break coverage testing too.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Build and run flatpak's unit tests using the just-built ostree for this PR. | ||
|
||
set -xeuo pipefail | ||
|
||
build() { | ||
env NOCONFIGURE=1./autogen.sh | ||
./configure --prefix=/usr --libdir=/usr/lib64 "$@" | ||
make -j 8 | ||
} | ||
|
||
# build+install ostree | ||
build | ||
sudo make install | ||
tmpd=$(mktemp -d) | ||
cd ${tmpd} | ||
# Frozen to a tag for now on general principle | ||
git clone --recursive --depth=1 -b 0.9.3 https://github.com/flatpak/flatpak | ||
cd flatpak | ||
dnf builddep -y flatpak | ||
build | ||
make -j 8 check |