-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to create and initialize postgis test database
- Loading branch information
Sandro Santilli
committed
Feb 17, 2016
1 parent
bc7036f
commit cdf05ac
Showing
2 changed files
with
19 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
SCRIPTS=" | ||
tests/testdata/provider/testdata_pg.sql | ||
tests/testdata/provider/testdata_pg_reltests.sql | ||
tests/testdata/provider/testdata_pg_vectorjoin.sql | ||
" | ||
|
||
createdb qgis_test || exit 1 | ||
for f in ${SCRIPTS}; do | ||
psql -f $f qgis_test --set ON_ERROR_STOP=1 || exit 1 | ||
done |
cdf05ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to use this script in travis before_script.sh? This would avoid that the next person adding a new sql file forgets to add it in one place or the other.
cdf05ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, definitely
cdf05ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #2803