From 7c461560d69b6782b6969146bbfc5d79a09eb3d0 Mon Sep 17 00:00:00 2001 From: Alexandre Pion Date: Thu, 7 Dec 2023 15:59:02 +0100 Subject: [PATCH] CI: Ubuntu 22.04 comes with PostgreSQL 14 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a04a17d71..39edaf9ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -114,9 +114,9 @@ before_install: - mkdir -p ./lib/auto/share/dist/ - ln -s ../../../../share ./lib/auto/share/dist/Zonemaster-Backend - # Change default PostgreSQL 12 port to 5432 - - if [[ "$TARGET" == "PostgreSQL" ]]; then sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/12/main/postgresql.conf; fi - - if [[ "$TARGET" == "PostgreSQL" ]]; then sudo pg_ctlcluster 12 main restart; fi + # Change default PostgreSQL 14 port to 5432 + - if [[ "$TARGET" == "PostgreSQL" ]]; then sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/14/main/postgresql.conf; fi + - if [[ "$TARGET" == "PostgreSQL" ]]; then sudo pg_ctlcluster 14 main restart; fi before_script: - if [[ "$TARGET" == "PostgreSQL" ]]; then psql -U travis -c "CREATE USER travis_zonemaster WITH PASSWORD 'travis_zonemaster';"; fi