2014-05-08 17:38:29 +08:00
|
|
|
language: c
|
|
|
|
|
2014-05-08 17:52:02 +08:00
|
|
|
addons:
|
2017-04-10 21:58:49 +08:00
|
|
|
postgresql: 9.5
|
2014-05-08 17:52:02 +08:00
|
|
|
|
2014-05-06 16:21:27 +08:00
|
|
|
before_install:
|
2017-04-10 21:58:49 +08:00
|
|
|
# Add custom PPAs from cartodb
|
|
|
|
- sudo add-apt-repository -y ppa:cartodb/postgresql-9.5
|
|
|
|
- sudo add-apt-repository -y ppa:cartodb/gis
|
|
|
|
- sudo add-apt-repository -y ppa:cartodb/gis-testing
|
2014-07-25 16:56:54 +08:00
|
|
|
- sudo apt-get update
|
2017-04-10 21:58:49 +08:00
|
|
|
|
|
|
|
# Force instalation of libgeos-3.5.0 (presumably needed because of existing version of postgis)
|
|
|
|
- sudo apt-get -y install libgeos-3.5.0=3.5.0-1cdb2
|
|
|
|
|
|
|
|
# Install postgres db and build deps
|
|
|
|
- sudo /etc/init.d/postgresql stop # stop travis default instance
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.1
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.2
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.3
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.4
|
|
|
|
- sudo apt-get -y remove --purge postgresql-9.5
|
|
|
|
- sudo rm -rf /var/lib/postgresql/
|
|
|
|
- sudo rm -rf /var/log/postgresql/
|
|
|
|
- sudo rm -rf /etc/postgresql/
|
|
|
|
- sudo apt-get -y remove --purge postgis-2.2
|
|
|
|
- sudo apt-get -y autoremove
|
|
|
|
|
2017-06-30 18:52:26 +08:00
|
|
|
- sudo apt-get -y install postgresql-9.5=9.5.2-3cdb3
|
|
|
|
- sudo apt-get -y install postgresql-server-dev-9.5=9.5.2-3cdb3
|
|
|
|
- sudo apt-get -y install postgresql-plpython-9.5=9.5.2-3cdb3
|
2017-04-10 21:58:49 +08:00
|
|
|
- sudo apt-get -y install postgresql-9.5-postgis-scripts=2.2.2.0-cdb2
|
|
|
|
- sudo apt-get -y install postgresql-9.5-postgis-2.2=2.2.2.0-cdb2
|
|
|
|
|
|
|
|
# configure it to accept local connections from postgres
|
|
|
|
- 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/9.5/main/pg_hba.conf
|
|
|
|
- sudo /etc/init.d/postgresql restart 9.5
|
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; }
|