From 5f78b905724298be6dd0c04038dce330fe5e404c Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 11 Mar 2021 12:32:58 +0000 Subject: [PATCH] travis-ci - revive postgis.input tests (call unlink brew pkga in `script` section) --- .travis.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9769f3ad7..465b0baa5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ matrix: env: >- CXX="ccache clang++ -Qunused-arguments" before_install: - - brew unlink $(brew list) + install: - source scripts/travis-common.sh # workaround travis rvm bug @@ -60,14 +60,14 @@ install: - export PATH=${PREFIX}/bin:$(pwd)/mason_packages/.link/bin:${PATH} - export COVERAGE=${COVERAGE:-false} - export BENCH=${BENCH:-false} - #- 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 - - on 'linux' psql -c 'create database template_postgis;' -U postgres - - on 'linux' psql -c 'create extension postgis;' -d template_postgis -U 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 - enabled ${COVERAGE} curl -S -f https://codecov.io/bash -o codecov - enabled ${COVERAGE} chmod +x codecov @@ -83,6 +83,7 @@ before_script: script: - git_submodule_update --init deps/ + - on 'osx' - brew unlink $(brew list) - configure BENCHMARK=${BENCH} ENABLE_GLIBC_WORKAROUND=${ENABLE_GLIBC_WORKAROUND:-false} QUIET=${QUIET:-false} #- cat config.log => comment out to reduce log size limit on travis-ci # we limit the `make` to 40 min