From 46ae6d1fe45642083630ef062f5e66e90644dca2 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 24 Jun 2014 10:16:26 +0200 Subject: [PATCH] Changes travis configuration to be similar to windshaft one --- .travis.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ca29eff5..c860b12d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,21 @@ before_install: + - sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp + - sudo apt-get -qq purge postgis* postgresql* + - sudo apt-add-repository --yes ppa:cartodb/postgresql-9.3 + - sudo apt-add-repository --yes ppa:cartodb/gis + - sudo rm -Rf /var/lib/postgresql /etc/postgresql - sudo apt-add-repository --yes ppa:mapnik/v2.1.0 - - sudo apt-get update -q - - sudo apt-get install -q libmapnik-dev + - sudo apt-get update + - sudo apt-get install -y postgresql-9.3-postgis-2.1 + - sudo apt-get install -y postgresql-contrib-9.3 + - sudo apt-get install -y libmapnik-dev + - sudo apt-get install -y gdal-bin + - 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.3/main/pg_hba.conf + - sudo service postgresql restart - createdb template_postgis - psql -c "CREATE EXTENSION postgis" template_postgis + +before_script: # Tell npm to use known registrars: # see http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more - npm config set ca ""