Skip to content

Commit

Permalink
[travis] Restore postgres database after build
Browse files Browse the repository at this point in the history
This will give postgres plenty of time to start up
  • Loading branch information
m-kuhn committed Sep 20, 2017
1 parent c767995 commit fd2c6d9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .ci/travis/linux/docker-build-test.sh
Expand Up @@ -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 &&

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd2c6d9

Please sign in to comment.