From bfcf92f728fa374deb2f5f01f2dbfe7de0c14040 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 17 Feb 2016 11:29:49 +0100 Subject: [PATCH] Use pg initialization script from Travis --- ci/travis/linux/before_script.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ci/travis/linux/before_script.sh b/ci/travis/linux/before_script.sh index 664f56de8bf..9a3abc7719a 100755 --- a/ci/travis/linux/before_script.sh +++ b/ci/travis/linux/before_script.sh @@ -1,5 +1,4 @@ printf "[qgis_test]\nhost=localhost\ndbname=qgis_test\nuser=postgres" > ~/.pg_service.conf -psql -c 'CREATE DATABASE qgis_test;' -U postgres -psql -f $TRAVIS_BUILD_DIR/tests/testdata/provider/testdata_pg.sql -U postgres -d qgis_test -psql -f $TRAVIS_BUILD_DIR/tests/testdata/provider/testdata_pg_reltests.sql -U postgres -d qgis_test -psql -f $TRAVIS_BUILD_DIR/tests/testdata/provider/testdata_pg_vectorjoin.sql -U postgres -d qgis_test + +export PGUSER=postgres +$TRAVIS_BUILD_DIR/tests/testdata/provider/testdata_pg.sh