[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 04/07: ci: setup postgresql inside test job
From: |
gnunet |
Subject: |
[taler-exchange] 04/07: ci: setup postgresql inside test job |
Date: |
Sat, 09 Sep 2023 05:03:26 +0200 |
This is an automated email from the git hooks/post-receive script.
devan-carpenter pushed a commit to branch master
in repository exchange.
commit 30b0302c6d23598374fd5ab9363eb2d718d7fc1e
Author: Devan Carpenter <devan@taler.net>
AuthorDate: Thu Sep 7 11:05:26 2023 -0400
ci: setup postgresql inside test job
---
ci/Containerfile | 7 ++++++-
ci/jobs/2-test/test.sh | 6 +++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ci/Containerfile b/ci/Containerfile
index 720d2885..a83989ea 100644
--- a/ci/Containerfile
+++ b/ci/Containerfile
@@ -8,7 +8,6 @@ RUN apt-get update -yqq && \
autopoint \
curl \
git \
- jq \
libcurl4-gnutls-dev \
libgcrypt-dev \
libidn11-dev \
@@ -40,6 +39,12 @@ RUN apt-get install -yqq \
doxygen \
graphviz
+# Test suite dependencies
+RUN apt-get install -yqq \
+ jq \
+ postgresql \
+ sudo
+
# 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
diff --git a/ci/jobs/2-test/test.sh b/ci/jobs/2-test/test.sh
index 6c3d2be2..06bc1809 100755
--- a/ci/jobs/2-test/test.sh
+++ b/ci/jobs/2-test/test.sh
@@ -8,11 +8,15 @@ set -evu
make
make install
+sudo -u postgres /usr/lib/postgresql/15/bin/postgres -D
/etc/postgresql/15/main -h localhost -p 5432 &
+sleep 10
+sudo -u postgres createuser -p 5432 root
+sudo -u postgres createdb -p 5432 -O root talercheck
check_command()
{
# Set LD_LIBRARY_PATH so tests can find the installed libs
- LD_LIBRARY_PATH=/usr/local/lib make check
+ LD_LIBRARY_PATH=/usr/local/lib PGPORT=5432 make check
}
print_logs()
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] branch master updated (a4427442 -> 01196043), gnunet, 2023/09/08
- [taler-exchange] 01/07: docs: make doxygen fail on warnings, gnunet, 2023/09/08
- [taler-exchange] 02/07: ci: add docs dependencies to container environment, gnunet, 2023/09/08
- [taler-exchange] 06/07: ci: improve log print logic in test script, gnunet, 2023/09/08
- [taler-exchange] 05/07: ci: install full gnunet package for gnunettest dep, gnunet, 2023/09/08
- [taler-exchange] 03/07: ci: add codespell job, gnunet, 2023/09/08
- [taler-exchange] 04/07: ci: setup postgresql inside test job,
gnunet <=
- [taler-exchange] 07/07: ci: add wget to container env testing deps, gnunet, 2023/09/08