aboutsummaryrefslogtreecommitdiff
path: root/ci/jobs
diff options
context:
space:
mode:
authorDevan Carpenter <devan@taler.net>2023-09-07 11:05:26 -0400
committerDevan Carpenter <devan@taler.net>2023-09-08 22:25:35 -0400
commit30b0302c6d23598374fd5ab9363eb2d718d7fc1e (patch)
treeedeee62d8b00ec5f1a0f1cd5c0a84a4671f575d1 /ci/jobs
parent45e3209fa61873db192f02a223dc70464331568e (diff)
downloadexchange-30b0302c6d23598374fd5ab9363eb2d718d7fc1e.tar.xz
ci: setup postgresql inside test job
Diffstat (limited to 'ci/jobs')
-rwxr-xr-xci/jobs/2-test/test.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/jobs/2-test/test.sh b/ci/jobs/2-test/test.sh
index 6c3d2be21..06bc18097 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()