mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
[travis] Restore postgres database after build
This will give postgres plenty of time to start up
This commit is contained in:
parent
d64215e647
commit
d62d9aa53a
@ -14,17 +14,13 @@ ccache -z
|
|||||||
|
|
||||||
cd /root/QGIS
|
cd /root/QGIS
|
||||||
|
|
||||||
sleep 20
|
|
||||||
|
|
||||||
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf
|
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf
|
||||||
export PGUSER=docker
|
export PGUSER=docker
|
||||||
export PGHOST=postgres
|
export PGHOST=postgres
|
||||||
export PGPASSWORD=docker
|
export PGPASSWORD=docker
|
||||||
export PGDATABASE=qgis_test
|
export PGDATABASE=qgis_test
|
||||||
|
|
||||||
# export PYTHONIOENCODING="utf-8"
|
# Build
|
||||||
|
|
||||||
/root/QGIS/tests/testdata/provider/testdata_pg.sh
|
|
||||||
|
|
||||||
mkdir -p build &&
|
mkdir -p build &&
|
||||||
|
|
||||||
@ -53,6 +49,9 @@ ls -la --full-time python/plugins/processing/tests/testdata/expected/polys_centr
|
|||||||
|
|
||||||
ninja
|
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
|
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
|
ccache -s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user