]> granicus.if.org Git - pgbouncer/commitdiff
Test against multiple PostgreSQL versions
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 13 Aug 2019 00:12:54 +0000 (02:12 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 13 Aug 2019 07:21:29 +0000 (09:21 +0200)
This allows testing versions with older and newer authentication
behavior.

.travis.yml
test/ssl/test.sh
test/test.sh

index 91b20da43c953ebc703dd81f2297709f3e996f86..e69c00957f8af133939dc1c0e69baee95c06de2f 100644 (file)
@@ -2,6 +2,10 @@ dist: xenial
 language: c
 addons:
   apt:
+    sources:
+      - sourceline: 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main'
+        key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
+    update: true
     packages:
       - debhelper
       - devscripts
@@ -12,14 +16,19 @@ addons:
       - libudns-dev
       - lintian
       - pandoc
+      - postgresql-9.5
+      - postgresql-11
       - python
       - valgrind
 compiler:
   - clang
   - gcc
 env:
+  global:
+    - PGVERSION=11
   matrix:
     - configure_args=''
+    - configure_args='' PGVERSION=9.5
     - configure_args='--disable-evdns --without-cares --without-udns'
     - configure_args='--enable-evdns  --without-cares --without-udns'
     - configure_args='--disable-evdns --with-cares    --without-udns --disable-werror'
@@ -28,10 +37,12 @@ env:
     - configure_args='--with-openssl'
     - configure_args='--without-openssl'
     - use_efence=yes   configure_args='--with-openssl --with-pam'
+    - use_efence=yes   PGVERSION=9.5 configure_args='--with-openssl --with-pam'
     - use_valgrind=yes configure_args='--without-openssl'
+    - use_valgrind=yes PGVERSION=9.5 configure_args='--without-openssl'
 script: |
   set -e
-  PATH=/usr/lib/postgresql/9.5/bin:$PATH
+  PATH=/usr/lib/postgresql/${PGVERSION}/bin:$PATH
   etc/optscan.sh
   ./autogen.sh
   ./configure --prefix=$HOME/install --enable-cassert --enable-werror --without-cares $configure_args
index a3e5b34af69aa7ebc05dc636f59265e70c1c0dda..97d3d3ae88aab7e7f8a22f35457b20955ce422b3 100755 (executable)
@@ -11,7 +11,6 @@ rm -rf TestCA1
 ./newsite.sh TestCA1 random C=QQ O=Org1 L=computer OU=Dev
 ) > /dev/null
 
-export PATH=/usr/lib/postgresql/9.4/bin:$PATH
 export PGDATA=$PWD/pgdata
 export PGHOST=localhost
 export PGPORT=6667
index 7af9aa5e71af882c811ae1de9fa0a1f26c34335a..6b15af7503b6757637550b07ec6c1851d8ad8747 100755 (executable)
@@ -5,7 +5,6 @@
 
 cd $(dirname $0)
 
-export PATH=/usr/lib/postgresql/9.4/bin:$PATH
 export PGDATA=$PWD/pgdata
 export PGHOST=localhost
 export PGPORT=6667