Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use pg initialization script from Travis
- Loading branch information
Sandro Santilli
committed
Feb 17, 2016
1 parent
034b5c0
commit bfcf92f728fa374deb2f5f01f2dbfe7de0c14040
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |