btrfs-progs: ci: add openSUSE Leap 15.2 image
Build tests inside openSUSE Leap 15.2, long term support distro. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ba9ad9939c
commit
cb419f18fc
|
@ -0,0 +1,31 @@
|
|||
FROM opensuse/leap:15.2
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
RUN zypper install -y --no-recommends autoconf automake pkg-config
|
||||
RUN zypper install -y --no-recommends libattr-devel libblkid-devel libuuid-devel
|
||||
RUN zypper install -y --no-recommends libext2fs-devel libreiserfscore-devel
|
||||
RUN zypper install -y --no-recommends zlib-devel lzo-devel libzstd-devel
|
||||
RUN zypper install -y --no-recommends make gcc tar gzip
|
||||
RUN zypper install -y --no-recommends python3 python3-devel python3-setuptools
|
||||
|
||||
# For downloading fresh sources
|
||||
RUN zypper install -y --no-recommends wget
|
||||
|
||||
# For running tests
|
||||
RUN zypper install -y --no-recommends coreutils util-linux e2fsprogs findutils grep
|
||||
RUN zypper install -y --no-recommends udev device-mapper acl attr xz
|
||||
|
||||
# For debugging
|
||||
RUN zypper install -y --no-recommends less vim
|
||||
|
||||
COPY ./test-build .
|
||||
COPY ./run-tests .
|
||||
COPY ./devel.tar.gz .
|
||||
|
||||
CMD ./test-build devel --disable-documentation
|
||||
|
||||
# Continue with:
|
||||
# cd /tmp
|
||||
# (see CMD above)
|
||||
# ./run-tests /tmp/btrfs-progs-devel
|
|
@ -0,0 +1 @@
|
|||
/home/dsterba/labs/btrfs-progs/ci/images/docker-build
|
|
@ -0,0 +1 @@
|
|||
/home/dsterba/labs/btrfs-progs/ci/images/docker-run
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
where="$1"
|
||||
|
||||
cd "$where" || { echo "ERROR: $1 not found"; exit 1; }
|
||||
|
||||
make TEST_LOG=dump test-cli
|
||||
make TEST_LOG=dump test-mkfs
|
||||
make TEST_LOG=dump test-check
|
||||
make TEST_LOG=dump test-misc
|
||||
make TEST_LOG=dump test-convert
|
||||
make TEST_LOG=dump test-fuzz
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
# usage: $0 [branch name] [configure parameters]
|
||||
|
||||
urlbase="https://github.com/kdave/btrfs-progs/archive"
|
||||
branch=${1:-devel}
|
||||
fname="${branch}.tar.gz"
|
||||
url="$urlbase/$fname"
|
||||
|
||||
shift
|
||||
|
||||
echo "btrfs-progs build test of branch ${branch}"
|
||||
cd /tmp
|
||||
if [ -f "$fname" -a -s "$fname" ]; then
|
||||
echo "Found local file $fname, not downloading"
|
||||
else
|
||||
echo "Missing or empty tar, downloading devel branch from git"
|
||||
rm -- "$fname"
|
||||
wget "$url" -O "$fname"
|
||||
fi
|
||||
tar xf "$fname"
|
||||
cd "btrfs-progs-$branch"
|
||||
ci/build-default "$@"
|
Loading…
Reference in New Issue