Skip to content
Permalink
Browse files

[travis] Restore postgres database after build

This will give postgres plenty of time to start up
  • Loading branch information
m-kuhn committed Sep 20, 2017
1 parent c767995 commit fd2c6d9ab26b1bd712933323c797b46ccf8f1fec
Showing with 4 additions and 5 deletions.
  1. +4 −5 .ci/travis/linux/docker-build-test.sh
@@ -14,17 +14,13 @@ ccache -z

cd /root/QGIS

sleep 20

printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf
export PGUSER=docker
export PGHOST=postgres
export PGPASSWORD=docker
export PGDATABASE=qgis_test

# export PYTHONIOENCODING="utf-8"

/root/QGIS/tests/testdata/provider/testdata_pg.sh
# Build

mkdir -p build &&

@@ -53,6 +49,9 @@ ls -la --full-time python/plugins/processing/tests/testdata/expected/polys_centr

ninja

# Restore postgres test data
/root/QGIS/tests/testdata/provider/testdata_pg.sh

python3 /root/QGIS/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V -E "$(cat /root/QGIS/.ci/travis/linux/blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" -S /root/QGIS/.ci/travis/travis.ctest --output-on-failure

ccache -s

0 comments on commit fd2c6d9

Please sign in to comment.
You can’t perform that action at this time.