Skip to content

Commit

Permalink
Compatibility with PostgreSQL 13 (#5)
Browse files Browse the repository at this point in the history
Run tests for 12 and 13 on travis
  • Loading branch information
Alexander Kukushkin authored Feb 16, 2021
1 parent a38b234 commit 8a57226
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: true
dist: trusty
dist: bionic
language: c
compiler: gcc
matrix:
Expand All @@ -10,17 +10,24 @@ matrix:
- env: PG=9.6
- env: PG=10
- env: PG=11
- env: PG=12
- env: PG=13
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?$/
before_install:
- sudo pg_dropcluster --stop 9.6 main
- sudo service postgresql stop
- sudo sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf
- if ! sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-$PG postgresql-server-dev-$PG libevent-dev pv; then echo; fi
- if [ $PG = 13 ]; then sudo sed -i -e "s/main/main $PG/" /etc/apt/sources.list.d/pgdg*.list && sudo apt-get -qq update; fi
- if ! sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-$PG postgresql-server-dev-$PG; then echo; fi
- sudo pip install --upgrade cpp-coveralls
script:
- |
set -e
export PATH=/usr/lib/postgresql/$PG/bin:$PATH
sudo make USE_PGXS=1 ENABLE_GCOV=1 install
sudo PATH=$PATH make USE_PGXS=1 ENABLE_GCOV=1 install
sudo PATH=$PATH make USE_PGXS=1 ENABLE_GCOV=1 with_llvm=no clean all install
bash -x test.sh
after_success:
- coveralls --gcov-options '\-lr'
4 changes: 1 addition & 3 deletions pg_auth_mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
#include "libpq/libpq-be.h"
#include "port.h"
#include "miscadmin.h"
#include "access/hash.h"
#include "storage/lwlock.h"
#include "storage/ipc.h"
#include "storage/shmem.h"
#if PG_VERSION_NUM >= 100000
#include "utils/hashutils.h"
#endif
#include "utils/hsearch.h"
#include "utils/memutils.h"
#include "utils/tuplestore.h"
Expand Down

1 comment on commit 8a57226

@feikesteenbergen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Just what I needed!

Please sign in to comment.