diff options
author | Nullptrderef <nullptrderef@proton.me> | 2024-06-16 13:56:11 +0200 |
---|---|---|
committer | Nullptrderef <nullptrderef@proton.me> | 2024-06-16 13:56:11 +0200 |
commit | 3cbfa7ab59d37b53724c15fed55a4880745db6a6 (patch) | |
tree | cf0e9b5ad27b04be38bf63f9d8092bec1d122ad5 /contrib/ci/jobs/100-build-debian-bookworm-amd64-generated | |
parent | ea28f2d34f308f812076e0128b1799acf8c686dd (diff) | |
download | exchange-3cbfa7ab59d37b53724c15fed55a4880745db6a6.tar.xz |
generate ci targets
Diffstat (limited to 'contrib/ci/jobs/100-build-debian-bookworm-amd64-generated')
3 files changed, 88 insertions, 0 deletions
diff --git a/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/Containerfile b/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/Containerfile new file mode 100644 index 000000000..6e2c93980 --- /dev/null +++ b/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/Containerfile @@ -0,0 +1,68 @@ +FROM docker.io/debian + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update -yqq && \ + apt-get install -yqq \ + autoconf \ + autopoint \ + curl \ + bash \ + coreutils \ + git \ + libcurl4-gnutls-dev \ + libgcrypt-dev \ + libidn11-dev \ + libjansson-dev \ + libmicrohttpd-dev \ + libpq-dev \ + libqrencode-dev \ + libsodium-dev \ + libtool \ + libunistring-dev \ + make \ + pkg-config \ + python3-pip \ + python3-sphinx \ + python3-sphinx-rtd-theme \ + recutils \ + texinfo \ + zlib1g-dev \ + # For mustach testing (optional) \ + libjson-c-dev \ + # Debian packaging tools \ + po-debconf \ + build-essential \ + debhelper-compat \ + devscripts \ + git-buildpackage \ + # Documentation dependencies \ + doxygen \ + graphviz \ + pandoc \ + # Test suite dependencies \ + jq \ + postgresql \ + sudo \ + wget + +# Install Taler (and friends) packages +RUN curl -sS https://deb.taler.net/apt-nightly/taler-bookworm-ci.sources \ + | tee /etc/apt/sources.list.d/taler-bookworm-ci.sources + +RUN echo '\ +Package: * \n\ +Pin: origin "deb.taler.net" \n\ +Pin-Priority: 999' > /etc/apt/preferences.d/taler + +RUN cat /etc/apt/preferences.d/taler && \ + apt-get update -y && \ + apt-get install -y \ + libgnunet-dev \ + libgnunet \ + gnunet \ +&& rm -rf /var/lib/apt/lists/* + +WORKDIR /workdir + +CMD ["bash", "/workdir/ci/ci.sh"] diff --git a/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/build.sh b/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/build.sh new file mode 100755 index 000000000..d3fcfab85 --- /dev/null +++ b/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/build.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -exuo pipefail + +apt-get update +apt-get upgrade -yqq + +./bootstrap +./configure CFLAGS="-ggdb -O0" \ + --enable-logging=verbose \ + --disable-doc + +nump=$(grep processor /proc/cpuinfo | wc -l) +make -j$(( $nump / 2 )) +make diff --git a/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/job.sh b/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/job.sh new file mode 100755 index 000000000..8d79902c5 --- /dev/null +++ b/contrib/ci/jobs/100-build-debian-bookworm-amd64-generated/job.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -exuo pipefail + +job_dir=$(dirname "${BASH_SOURCE[0]}") + +"${job_dir}"/build.sh |