Test with PG11

This commit is contained in:
Raul Marin 2019-01-02 19:01:30 +01:00
parent 80fdd00541
commit 9a3ac908a9
2 changed files with 27 additions and 14 deletions

View File

@ -1,26 +1,38 @@
dist: xenial
language: c language: c
dist: trusty
sudo: required sudo: required
env: env:
- PGUSER=postgres PGDATABASE=postgres global:
- PGUSER=postgres
- PGDATABASE=postgres
- PGOPTIONS='-c client_min_messages=NOTICE'
- PGPORT=5432
- POSTGIS_VERSION="2.5"
matrix:
- POSTGRESQL_VERSION="9.5"
- POSTGRESQL_VERSION="10"
- POSTGRESQL_VERSION="11"
env:
- POSTGRESQL_VERSION="9.5", POSTGIS_VERSION="2.4"
- POSTGRESQL_VERSION="10", POSTGIS_VERSION="2.4"
before_install: before_install:
- export POSTGIS_PACKAGE_VERSION=$(apt list postgis -a 2>/dev/null | grep $POSTGIS_VERSION | awk '{ print $2 }')
- sudo service postgresql stop; - sudo service postgresql stop;
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests postgresql-$POSTGRESQL_VERSION postgresql-client-$POSTGRESQL_VERSION postgresql-server-dev-$POSTGRESQL_VERSION postgis=$POSTGIS_PACKAGE_VERSION postgresql-$POSTGRESQL_VERSION-postgis-scripts postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION postgresql-plpython-$POSTGRESQL_VERSION - sudo apt-get remove postgresql* -y
- echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" | sudo tee /etc/postgresql/$POSTGRESQL_VERSION/main/pg_hba.conf - sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests postgresql-$POSTGRESQL_VERSION postgresql-client-$POSTGRESQL_VERSION postgresql-server-dev-$POSTGRESQL_VERSION postgresql-common
- export PGPORT=`grep ^port /etc/postgresql/$POSTGRESQL_VERSION/main/postgresql.conf | awk '{print $3}'` - if [[ $POSTGRESQL_VERSION == '9.5' ]]; then sudo apt-get install -y postgresql-contrib-9.5; fi;
- export PGUSER=postgres - sudo apt-get install -y --allow-unauthenticated postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION-scripts postgis postgresql-plpython-$POSTGRESQL_VERSION
- export PGDATABASE=postgres - sudo pg_dropcluster --stop $POSTGRESQL_VERSION main
- sudo service postgresql restart $POSTGRESQL_VERSION; - sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION
- sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- -A trust
- sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION || sudo journalctl -xe
script: script:
- make - make
- sudo make install - sudo make install
- PGOPTIONS='-c client_min_messages=NOTICE' PGUSER=postgres make installcheck || - make installcheck
{ cat regression.diffs; false; }
after_failure:
- pg_lsclusters
- cat regression.out
- cat regression.diffs

View File

@ -1,5 +1,6 @@
0.24.1 (2019-01-02) 0.24.1 (2019-01-02)
* Drop functions removed in 0.12 (#341) * Drop functions removed in 0.12 (#341)
* Travis: Test with PostgreSQL 9.5, 10 and 11.
0.24.0 (2018-09-13) 0.24.0 (2018-09-13)
* Travis: Test with PostgreSQL 9.5 and 10. * Travis: Test with PostgreSQL 9.5 and 10.