From f3892e025ca8134392a8676e107f2f245530d6d8 Mon Sep 17 00:00:00 2001 From: Sergey Shinderuk Date: Fri, 14 Jun 2024 11:43:00 +0300 Subject: [PATCH] Build and test with PostgreSQL 17 beta in Travis CI --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 77f7266..ffbb0da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ dist: jammy language: c env: +- PG_MAJOR=17 BETA=1 - PG_MAJOR=16 - PG_MAJOR=15 - PG_MAJOR=14 @@ -10,6 +11,7 @@ env: before_script: - curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - - echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee -a /etc/apt/sources.list +- if [ -n "${BETA}" ]; then echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main ${PG_MAJOR}" | sudo tee -a /etc/apt/sources.list; fi - sudo apt-get update - sudo systemctl stop postgresql - sudo apt-get install -y --no-install-recommends postgresql-client-${PG_MAJOR} postgresql-${PG_MAJOR} postgresql-server-dev-${PG_MAJOR}