From 34f5b56003345cca8c54e49c25d682660cdfc2b5 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 30 Oct 2015 14:36:01 -0700 Subject: [PATCH] travis: get postgis running on osx --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 01ff42532..656ac257a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,14 +46,18 @@ before_install: install: - if [[ $(uname -s) == 'Linux' ]]; then - psql -U postgres -c 'create database template_postgis;' -U postgres; - psql -U postgres -c 'create extension postgis;' -d template_postgis -U postgres; export CXX="ccache clang++-3.5 -Qunused-arguments"; export CC="ccache clang-3.5 -Qunused-arguments"; export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages; else + brew rm postgis --force; + brew install postgis --force; + pg_ctl -w start -l postgres.log --pgdata /usr/local/var/postgres; + createuser -s postgres; export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages; fi + - psql -c 'create database template_postgis;' -U postgres; + - psql -c 'create extension postgis;' -d template_postgis -U postgres; - if [[ ${COVERAGE} == true ]]; then PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls; fi