taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 5132ad91f9b2ca8d6a35deb48f4ce6b95432a2c4
parent 3fcb5a00755f0158564bcb87053711692be037cd
Author: Florian Dold <florian@dold.me>
Date:   Tue, 25 Nov 2025 21:41:43 +0100

bump versions, update test script

Diffstat:
Mpackaging/ng/buildconfig/challenger.tag | 2+-
Mpackaging/ng/buildconfig/taler-exchange.tag | 2+-
Mpackaging/ng/buildconfig/taler-harness.tag | 2+-
Mpackaging/ng/buildconfig/taler-wallet-cli.tag | 2+-
Mpackaging/ng/testing/test-debian-trixie | 40+++++++++++++++++++++++++++++++++++++---
5 files changed, 41 insertions(+), 7 deletions(-)

diff --git a/packaging/ng/buildconfig/challenger.tag b/packaging/ng/buildconfig/challenger.tag @@ -1 +1 @@ -v1.1.0 +v1.2.0 diff --git a/packaging/ng/buildconfig/taler-exchange.tag b/packaging/ng/buildconfig/taler-exchange.tag @@ -1 +1 @@ -v1.2.0 +v1.2.1 diff --git a/packaging/ng/buildconfig/taler-harness.tag b/packaging/ng/buildconfig/taler-harness.tag @@ -1 +1 @@ -v1.1.0 +v1.2.1 diff --git a/packaging/ng/buildconfig/taler-wallet-cli.tag b/packaging/ng/buildconfig/taler-wallet-cli.tag @@ -1 +1 @@ -v1.1.0 +v1.2.1 diff --git a/packaging/ng/testing/test-debian-trixie b/packaging/ng/testing/test-debian-trixie @@ -9,12 +9,46 @@ Architectures: amd64 Components: main X-Repolib-Name: Taler Signed-By: /etc/apt/keyrings/taler-systems.gpg -Suites: trixie-testing +Suites: trixie Types: deb URIs: https://deb.taler.net/apt/debian EOF apt-get update -apt-get upgrade +apt-get -y upgrade +# We need libtalerexchange-dev for taler-fakebank-run +apt-get -y install taler-exchange libeufin-bank libeufin-nexus taler-merchant donau taler-harness taler-wallet-cli libtalerexchange-dev -apt-get install taler-exchange taler-merchant donau taler-harness taler-wallet-cli + +PG_DATA=$(mktemp -d) +SOCKET_DIR="/var/run/postgresql" # Standard on Debian/Ubuntu/RHEL +PGBIN=/usr/lib/postgresql/17/bin + +export PATH=$PGBIN:$PATH + +chown postgres:postgres "$PG_DATA" +if [ ! -d "$SOCKET_DIR" ]; then + mkdir -p "$SOCKET_DIR" +fi +chown postgres:postgres "$SOCKET_DIR" +chmod 775 "$SOCKET_DIR" + +echo "Initializing database..." +su - postgres -c "$PGBIN/initdb -D '$PG_DATA' --auth=trust --no-locale --encoding=UTF8" > /dev/null + +echo "Starting postgres..." +# We DO NOT pass -k. We let it use the system compiled default. +# We DO pass -c listen_addresses='' to disable TCP. +su - postgres -c "$PGBIN/pg_ctl -D '$PG_DATA' -l '$PG_DATA/logfile' -o '-c listen_addresses=\"\"' start" + +echo "Waiting for postgres to be ready..." +# We run pg_isready as postgres to avoid permission issues reading the socket initially +until su - postgres -c "$PGBIN/pg_isready -q"; do + sleep 0.5 +done + +su - postgres -c "$PGBIN/createdb testdb" + +su - postgres -c "$PGBIN/createuser -s root" + +taler-harness run-integrationtests --quiet