2014-05-08 17:38:29 +08:00
language : c
2018-09-04 23:25:03 +08:00
dist : trusty
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 :
- PGUSER=postgres PGDATABASE=postgres
2014-05-08 17:52:02 +08:00
2018-09-04 23:25:03 +08:00
env :
- POSTGRESQL_VERSION="9.5", POSTGIS_VERSION="2.4"
- POSTGRESQL_VERSION="10", POSTGIS_VERSION="2.4"
2017-04-10 21:58:49 +08:00
2018-09-04 23:25:03 +08:00
before_install :
- export POSTGIS_PACKAGE_VERSION=$(apt list postgis -a 2>/dev/null | grep $POSTGIS_VERSION | awk '{ print $2 }')
- 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
- 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
- export PGPORT=`grep ^port /etc/postgresql/$POSTGRESQL_VERSION/main/postgresql.conf | awk '{print $3}'`
- export PGUSER=postgres
- export PGDATABASE=postgres
- sudo service postgresql restart $POSTGRESQL_VERSION;
2014-05-06 16:21:27 +08:00
script :
2014-05-08 18:02:38 +08:00
- make
- sudo make install
2014-06-18 17:54:28 +08:00
- PGOPTIONS='-c client_min_messages=NOTICE' PGUSER=postgres make installcheck ||
2014-05-08 18:54:22 +08:00
{ cat regression.diffs; false; }