mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-31 21:18:22 +03:00
ci/flatpak: Fix to use built ostree version
Noticed as part of a random failure in this PR: https://github.com/ostreedev/ostree/pull/1655 that we weren't actually testing the version of ostree we built in git. Probably we should be generating RPMs but...later. Closes: #1662 Approved by: jlebon
This commit is contained in:
parent
abff8b8cfa
commit
f2e71c60ec
@ -3,24 +3,38 @@
|
|||||||
|
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
FLATPAK_TAG=master
|
# Keep this pinned to avoid arbitrary change for now; it's also
|
||||||
|
# good to test building older code against newer ostree as it helps
|
||||||
|
# us notice any API breaks.
|
||||||
|
FLATPAK_TAG=0.99.2
|
||||||
|
|
||||||
dn=$(dirname $0)
|
dn=$(dirname $0)
|
||||||
. ${dn}/libpaprci/libbuild.sh
|
. ${dn}/libpaprci/libbuild.sh
|
||||||
|
|
||||||
codedir=$(pwd)
|
codedir=$(pwd)
|
||||||
|
|
||||||
# Build and install ostree
|
# Build ostree, but we don't install it yet
|
||||||
cd ${codedir}
|
cd ${codedir}
|
||||||
ci/build.sh
|
ci/build.sh
|
||||||
make install
|
|
||||||
|
|
||||||
# Build flatpak
|
# Build flatpak
|
||||||
tmpd=$(mktemp -d)
|
tmpd=$(mktemp -d)
|
||||||
cd ${tmpd}
|
cd ${tmpd}
|
||||||
git clone --recursive --depth=1 -b ${FLATPAK_TAG} https://github.com/flatpak/flatpak
|
git clone --recursive --depth=1 -b ${FLATPAK_TAG} https://github.com/flatpak/flatpak
|
||||||
cd ${tmpd}/flatpak
|
cd ${tmpd}/flatpak
|
||||||
ci/build.sh
|
# This is a copy of flatpak/ci/build.sh, but we can't use that as we want to install
|
||||||
|
# our built ostree over it.
|
||||||
|
pkg_install sudo which attr fuse bison \
|
||||||
|
libubsan libasan libtsan clang python2 \
|
||||||
|
elfutils git gettext-devel libappstream-glib-devel hicolor-icon-theme \
|
||||||
|
/usr/bin/{update-mime-database,update-desktop-database,gtk-update-icon-cache}
|
||||||
|
pkg_builddep flatpak
|
||||||
|
# Now install ostree over the package version
|
||||||
|
cd ${codedir}
|
||||||
|
make install
|
||||||
|
cd -
|
||||||
|
# And build flatpak
|
||||||
|
build
|
||||||
# We want to capture automake results from flatpak
|
# We want to capture automake results from flatpak
|
||||||
cleanup() {
|
cleanup() {
|
||||||
mv test-suite.log ${codedir} || true
|
mv test-suite.log ${codedir} || true
|
||||||
|
Loading…
Reference in New Issue
Block a user