ci: Run functional tests only in the case of meson

Remove stabber from Dockerfiles were we only build with autotools.
This commit is contained in:
Michael Vetter
2026-03-20 08:44:50 +01:00
parent f778e3e093
commit 3596e4c263
7 changed files with 17 additions and 66 deletions

View File

@@ -19,17 +19,17 @@ jobs:
include: include:
- flavor: debian - flavor: debian
buildsystem: Autotools buildsystem: Autotools
tests: unit+func tests: unit
omemo: signal omemo: signal
script: ./ci/ci-build.sh script: ./ci/ci-build.sh
- flavor: fedora - flavor: fedora
buildsystem: Autotools buildsystem: Autotools
tests: unit+func tests: unit
omemo: signal omemo: signal
script: ./ci/ci-build.sh script: ./ci/ci-build.sh
- flavor: ubuntu - flavor: ubuntu
buildsystem: Autotools buildsystem: Autotools
tests: unit+func tests: unit
omemo: signal omemo: signal
script: ./ci/ci-build.sh script: ./ci/ci-build.sh
- flavor: debian - flavor: debian

View File

@@ -17,7 +17,6 @@ RUN pacman -Syu --noconfirm && pacman -S --needed --noconfirm \
gpgme \ gpgme \
gtk2 \ gtk2 \
libgcrypt \ libgcrypt \
libmicrohttpd \
libnotify \ libnotify \
libsignal-protocol-c \ libsignal-protocol-c \
libomemo-c \ libomemo-c \
@@ -34,7 +33,7 @@ RUN pacman -Syu --noconfirm && pacman -S --needed --noconfirm \
gdk-pixbuf2 \ gdk-pixbuf2 \
qrencode qrencode
RUN mkdir -p /usr/src/{stabber,profanity} RUN mkdir -p /usr/src/profanity
RUN useradd -mb /usr/src --shell=/bin/false aur && usermod -L aur RUN useradd -mb /usr/src --shell=/bin/false aur && usermod -L aur
USER aur USER aur
@@ -54,14 +53,5 @@ USER root
RUN pacman -U --noconfirm libstrophe-git/libstrophe-git-*.pkg.tar.zst RUN pacman -U --noconfirm libstrophe-git/libstrophe-git-*.pkg.tar.zst
WORKDIR /usr/src
#RUN git clone https://github.com/boothj5/stabber
#WORKDIR /usr/src/stabber
#RUN ./bootstrap.sh
#RUN ./configure --prefix=/usr --disable-dependency-tracking
#RUN make
#RUN make install
WORKDIR /usr/src/profanity WORKDIR /usr/src/profanity
COPY . /usr/src/profanity COPY . /usr/src/profanity

View File

@@ -39,14 +39,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN mkdir -p /usr/src/{stabber,libstrophe,profanity} RUN mkdir -p /usr/src/{stabber,libstrophe,profanity}
WORKDIR /usr/src WORKDIR /usr/src
#RUN git clone https://github.com/boothj5/stabber RUN git clone -c http.sslverify=false https://github.com/profanity-im/stabber
RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe
#WORKDIR /usr/src/stabber WORKDIR /usr/src/stabber
#RUN ./bootstrap.sh RUN ./bootstrap.sh
#RUN ./configure --prefix=/usr --disable-dependency-tracking RUN ./configure --prefix=/usr --disable-dependency-tracking
#RUN make RUN make
#RUN make install RUN make install
WORKDIR /usr/src/libstrophe WORKDIR /usr/src/libstrophe
RUN ./bootstrap.sh RUN ./bootstrap.sh

View File

@@ -1,15 +1,12 @@
# Build the latest Fedora image # Build the latest Fedora image
FROM fedora:latest FROM fedora:latest
# expect - for functional tests
# libmicrohttpd - for stabber
# glibc-locale - to have en_US locale # glibc-locale - to have en_US locale
RUN dnf install -y \ RUN dnf install -y \
autoconf \ autoconf \
autoconf-archive \ autoconf-archive \
automake \ automake \
awk \ awk \
expect-devel \
gcc \ gcc \
git \ git \
glib2-devel \ glib2-devel \
@@ -21,7 +18,6 @@ RUN dnf install -y \
expat-devel \ expat-devel \
libgcrypt-devel \ libgcrypt-devel \
gpgme-devel \ gpgme-devel \
libmicrohttpd-devel \
libnotify-devel \ libnotify-devel \
libotr-devel \ libotr-devel \
libsignal-protocol-c-devel \ libsignal-protocol-c-devel \
@@ -47,15 +43,6 @@ ENV LC_ALL en_US.UTF-8
RUN mkdir -p /usr/src RUN mkdir -p /usr/src
WORKDIR /usr/src WORKDIR /usr/src
#RUN mkdir -p /usr/src/stabber
#RUN git clone https://github.com/boothj5/stabber
#WORKDIR /usr/src/stabber
#RUN ./bootstrap.sh
#RUN ./configure --prefix=/usr --disable-dependency-tracking
#RUN make
#RUN make install
WORKDIR /usr/src
RUN mkdir -p /usr/src/libstrophe RUN mkdir -p /usr/src/libstrophe
RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe
WORKDIR /usr/src/libstrophe WORKDIR /usr/src/libstrophe

View File

@@ -1,14 +1,11 @@
# Build the latest openSUSE Tumbleweed image # Build the latest openSUSE Tumbleweed image
FROM opensuse/tumbleweed FROM opensuse/tumbleweed
# expect - for functional tests
# libmicrohttpd - for stabber
# glibc-locale - to have en_US locale # glibc-locale - to have en_US locale
RUN zypper --non-interactive in --no-recommends \ RUN zypper --non-interactive in --no-recommends \
autoconf \ autoconf \
autoconf-archive \ autoconf-archive \
automake \ automake \
expect-devel \
gcc \ gcc \
git \ git \
glib2-devel \ glib2-devel \
@@ -21,7 +18,6 @@ RUN zypper --non-interactive in --no-recommends \
libgcrypt-devel \ libgcrypt-devel \
libgpgme-devel \ libgpgme-devel \
libstrophe-devel \ libstrophe-devel \
libmicrohttpd-devel \
libnotify-devel \ libnotify-devel \
libotr-devel \ libotr-devel \
libsignal-protocol-c-devel \ libsignal-protocol-c-devel \
@@ -46,14 +42,6 @@ ENV LC_ALL en_US.UTF-8
RUN mkdir -p /usr/src RUN mkdir -p /usr/src
WORKDIR /usr/src WORKDIR /usr/src
#RUN mkdir -p /usr/src/stabber
#RUN git clone git://github.com/boothj5/stabber.git
#WORKDIR /usr/src/stabber
#RUN ./bootstrap.sh
#RUN ./configure --prefix=/usr --disable-dependency-tracking
#RUN make
#RUN make install
RUN mkdir -p /usr/src/profanity RUN mkdir -p /usr/src/profanity
WORKDIR /usr/src/profanity WORKDIR /usr/src/profanity
COPY . /usr/src/profanity COPY . /usr/src/profanity

View File

@@ -6,7 +6,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \ autoconf \
autoconf-archive \ autoconf-archive \
automake \ automake \
expect \
gcc \ gcc \
git \ git \
libcmocka-dev \ libcmocka-dev \
@@ -15,7 +14,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-dev \ libglib2.0-dev \
libgpgme11-dev \ libgpgme11-dev \
libgtk2.0-dev \ libgtk2.0-dev \
libmicrohttpd-dev \
libncursesw5-dev \ libncursesw5-dev \
libnotify-dev \ libnotify-dev \
libotr5-dev \ libotr5-dev \
@@ -34,19 +32,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libgdk-pixbuf-2.0-dev \ libgdk-pixbuf-2.0-dev \
libqrencode-dev libqrencode-dev
RUN mkdir -p /usr/src/{stabber,libstrophe,profanity} RUN mkdir -p /usr/src/{libstrophe,profanity}
WORKDIR /usr/src WORKDIR /usr/src
#RUN git clone https://github.com/boothj5/stabber
RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe RUN git clone -c http.sslverify=false https://github.com/strophe/libstrophe
# TODO: Re-enable once libmicrohttpd-dev has been updated.
#WORKDIR /usr/src/stabber
#RUN ./bootstrap.sh
#RUN ./configure --prefix=/usr --disable-dependency-tracking
#RUN make
#RUN make install
WORKDIR /usr/src/libstrophe WORKDIR /usr/src/libstrophe
RUN ./bootstrap.sh RUN ./bootstrap.sh
RUN ./configure --prefix=/usr RUN ./configure --prefix=/usr

View File

@@ -121,18 +121,14 @@ esac
case "$ARCH" in case "$ARCH" in
linux*) linux*)
echo echo
echo "--> Building with ./configure ${tests[0]} --enable-valgrind $*" echo "--> Building with ./configure ${tests[0]} --enable-valgrind --disable-functional-tests $*"
echo echo
# shellcheck disable=SC2086 # shellcheck disable=SC2086
./configure ${tests[0]} --enable-valgrind $* ./configure ${tests[0]} --enable-valgrind --disable-functional-tests $*
$MAKE CC="${CC}" $MAKE CC="${CC}"
if grep '^ID=' /etc/os-release | grep -q -e debian; then $MAKE check-valgrind
$MAKE check-valgrind
else
$MAKE check-valgrind || log_content ./test-suite-memcheck.log
fi
$MAKE distclean $MAKE distclean
;; ;;
esac esac
@@ -140,14 +136,14 @@ esac
for features in "${tests[@]}" for features in "${tests[@]}"
do do
echo echo
echo "--> Building with ./configure ${features} $*" echo "--> Building with ./configure ${features} --disable-functional-tests $*"
echo echo
# shellcheck disable=SC2086 # shellcheck disable=SC2086
./configure $features $* ./configure $features --disable-functional-tests $*
$MAKE CC="${CC}" $MAKE CC="${CC}"
$MAKE check $MAKE check-unit
./profanity -v ./profanity -v
$MAKE clean $MAKE clean