commit a0c846a29b55ea170e57480989e7ccc1ca392095 parent f5b08a4a05a82bc6915e8bd73af4e5a8b2fa8c87 Author: Antoine A <> Date: Wed, 12 Feb 2025 18:26:59 +0100 common: more deb test in CI Diffstat:
| M | contrib/ci/jobs/3-deb/job.sh | | | 2 | -- |
| M | contrib/ci/jobs/3-deb/test.sh | | | 37 | +++++++++++++++++++++++++++++++++---- |
2 files changed, 33 insertions(+), 6 deletions(-)
diff --git a/contrib/ci/jobs/3-deb/job.sh b/contrib/ci/jobs/3-deb/job.sh @@ -14,8 +14,6 @@ cargo deb -p taler-magnet-bank --deb-version ${VERSION} --target x86_64-unknown- cargo deb -p taler-magnet-bank --deb-version ${VERSION} --target aarch64-unknown-linux-gnu # Test package -ARCH=$(dpkg --print-architecture) -dpkg -i /workdir/target/*/debian/*$ARCH.deb ./contrib/ci/jobs/3-deb/test.sh # Move to artifact diff --git a/contrib/ci/jobs/3-deb/test.sh b/contrib/ci/jobs/3-deb/test.sh @@ -1,8 +1,37 @@ -echo -e "\ntaler-magnet-bank version:" +set -eu + +ARCH=$(dpkg --print-architecture) + +function step() { + echo -e "\n$@" >&2 +} + +step "Install magnet-bank" +dpkg -i /workdir/target/*/debian/*$ARCH.deb + +step "Install magnet-bank again" +dpkg -i /workdir/target/*/debian/*$ARCH.deb + +step "Start postgres cluster" +sudo -u postgres pg_ctlcluster 15 main start + +step "taler-magnet-bank version:" taler-magnet-bank --version -echo -e "\ntaler-magnet-bank-httpd user:" + +step "taler-magnet-bank-httpd user:" id taler-magnet-bank-httpd -echo -e "\ntaler-magnet-bank-worker user:" + +step "taler-magnet-bank-worker user:" id taler-magnet-bank-worker -echo -e "\n purge magnet-bank:" + +step "Run dbconfig" +sudo taler-magnet-bank-dbconfig -r + +step "Remove magnet-bank" +dpkg --remove taler-magnet-bank + +step "Reinstall magnet-bank" +dpkg -i /workdir/target/*/debian/*$ARCH.deb + +step "Purge magnet-bank:" dpkg --purge taler-magnet-bank \ No newline at end of file