2019-01-03 02:01:30 +08:00
|
|
|
dist: xenial
|
2014-05-08 17:38:29 +08:00
|
|
|
language: c
|
2017-10-24 20:56:56 +08:00
|
|
|
sudo: required
|
2014-05-08 17:38:29 +08:00
|
|
|
|
2018-09-04 23:25:03 +08:00
|
|
|
env:
|
2019-01-03 02:01:30 +08:00
|
|
|
global:
|
|
|
|
- PGUSER=postgres
|
|
|
|
- PGDATABASE=postgres
|
|
|
|
- PGOPTIONS='-c client_min_messages=NOTICE'
|
|
|
|
- PGPORT=5432
|
|
|
|
- POSTGIS_VERSION="2.5"
|
|
|
|
|
|
|
|
matrix:
|
2019-05-31 22:18:47 +08:00
|
|
|
- POSTGRESQL_VERSION="9.6"
|
2019-01-03 02:01:30 +08:00
|
|
|
- POSTGRESQL_VERSION="10"
|
|
|
|
- POSTGRESQL_VERSION="11"
|
2019-10-22 17:59:42 +08:00
|
|
|
- POSTGRESQL_VERSION="12"
|
2014-05-08 17:52:02 +08:00
|
|
|
|
2017-04-10 21:58:49 +08:00
|
|
|
|
2018-09-04 23:25:03 +08:00
|
|
|
before_install:
|
|
|
|
- sudo service postgresql stop;
|
2019-01-03 02:01:30 +08:00
|
|
|
- sudo apt-get remove postgresql* -y
|
|
|
|
- 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
|
2019-05-31 22:18:47 +08:00
|
|
|
- if [[ $POSTGRESQL_VERSION == '9.6' ]]; then sudo apt-get install -y postgresql-contrib-9.6; fi;
|
2019-01-03 02:01:30 +08:00
|
|
|
- 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
|
|
|
|
- sudo pg_dropcluster --stop $POSTGRESQL_VERSION main
|
|
|
|
- sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION
|
2019-07-15 20:52:39 +08:00
|
|
|
- sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- --auth-local trust --auth-host password
|
2019-01-03 02:01:30 +08:00
|
|
|
- sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION || sudo journalctl -xe
|
2019-03-08 20:01:56 +08:00
|
|
|
- sudo pip install redis==2.4.9
|
2014-05-06 16:21:27 +08:00
|
|
|
script:
|
2014-05-08 18:02:38 +08:00
|
|
|
- make
|
|
|
|
- sudo make install
|
2019-01-03 02:01:30 +08:00
|
|
|
- make installcheck
|
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- pg_lsclusters
|
|
|
|
- cat regression.out
|
|
|
|
- cat regression.diffs
|