From 9624ee1c766e3e45e6a73203e541170f879754a8 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Sat, 2 Jul 2016 19:54:34 +0200 Subject: [PATCH] Attempt to use postgresql 9.5 --- .travis.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 16adbe89..f95479f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,6 @@ -sudo: false - addons: - postgresql: "9.4" apt: packages: - - postgresql-plpython-9.4 - pkg-config - libcairo2-dev - libjpeg8-dev @@ -12,6 +8,17 @@ addons: before_install: - npm install -g npm@2 + - lsb_release -a + - sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp + - sudo apt-get -qq purge postgis* postgresql* + - sudo rm -Rf /var/lib/postgresql /etc/postgresql + - sudo apt-add-repository --yes ppa:cartodb/postgresql-9.5 + - sudo apt-add-repository --yes ppa:cartodb/gis + - sudo apt-get update + - sudo apt-get install -q postgresql-9.5-postgis-2.2 + - sudo apt-get install -q postgresql-plpython-9.5 + - echo -e "local\tall\tall\ttrust\nhost\tall\tall\t127.0.0.1/32\ttrust\nhost\tall\tall\t::1/128\ttrust" |sudo tee /etc/postgresql/9.5/main/pg_hba.conf + - sudo service postgresql restart - createdb template_postgis - createuser publicuser - psql -c "CREATE EXTENSION postgis" template_postgis