From 5017740fbb438da75d66356c22f4907ebecdbe69 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 29 Mar 2016 17:16:08 -0700 Subject: [PATCH] [travis][osx] dodge Homebrew/homebrew#35240 --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d1b6de1b4..13cf1f20e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,9 +59,11 @@ install: - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export CCACHE_READONLY=1; fi - on 'linux' export PYTHONPATH=${PYTHONUSERBASE}/lib/python2.7/site-packages - on 'osx' export PYTHONPATH=${PYTHONUSERBASE}/lib/python/site-packages - - on 'osx' brew rm postgis --force - - on 'osx' brew install postgis --force - - on 'osx' pg_ctl -w start -l postgres.log --pgdata /usr/local/var/postgres + - on 'osx' export DATA_PATH=$(brew --prefix)/var/postgres + - on 'osx' rm -rf ${DATA_PATH} + - on 'osx' initdb ${DATA_PATH} -E utf8 + - on 'osx' pg_ctl -w start -l postgres.log --pgdata ${DATA_PATH}; + - on 'osx' cat postgres.log; - on 'osx' createuser -s postgres - psql -c 'create database template_postgis;' -U postgres - psql -c 'create extension postgis;' -d template_postgis -U postgres