btrfs-progs: ci: add Leap 15.4 for testing

Reuse 15.2 for 15.4.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2022-01-18 14:05:02 +01:00
parent ad528264b8
commit b8f31fabfc
6 changed files with 32 additions and 1 deletions

31
ci/ci-build-leap154 Executable file
View File

@ -0,0 +1,31 @@
#!/bin/sh
# Usage: $0 [branch]
# Create source tarball from HEAD or given branch and build it in musl CI
# environment
HERE=`pwd`
if [ -f "configure.ac" ]; then
SOURCEDIR=`pwd`
elif [ -f "../configure.ac" ]; then
cd ..
SOURCEDIR=`pwd`
else
echo "ERROR: cannot determine source directory from `pwd`"
exit 1
fi
CIIMAGEDIR=ci/images/ci-openSUSE-Leap-15.4-x86_64
BRANCH=${1:-HEAD}
HASH=$(git log -1 --format='%h %s' "$BRANCH")
echo "CI: Generate archive from $BRANCH ($HASH)"
git archive --prefix=btrfs-progs-devel/ -o devel.tar "$BRANCH"
echo "$BRANCH $HASH" > GITCOMMIT
tar uvf devel.tar GITCOMMIT
#rm GITCOMMIT
gzip --force --best devel.tar
cd "$CIIMAGEDIR"
cp "$SOURCEDIR/devel.tar.gz" .
./docker-build
./docker-run -- ./test-build devel --disable-documentation --disable-backtrace --disable-libudev

View File

@ -1,4 +1,4 @@
FROM opensuse/leap:15.2
FROM opensuse/leap:15.4
WORKDIR /tmp