ci: clean up after recent exploration.
This commit is contained in:
parent
ec0f718191
commit
117bb2a5b8
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Adding the extension to the default template is needed to allow the test-suite
|
||||
# to be run on postgres (see ietf.settings_postgrestest). The test runner always
|
||||
# makes a fresh test database instance, and since we are bypassing the migration
|
||||
# framework and using a fixture to set the database structure, there's no reaonable
|
||||
# way to install the extension as part of the test run.
|
||||
psql -U django -d template1 -v ON_ERROR_STOP=1 -c 'CREATE EXTENSION IF NOT EXISTS citext;'
|
||||
|
||||
|
|
|
@ -4,19 +4,8 @@ set -e
|
|||
echo "Drop dummy ietf DB if it exists..."
|
||||
dropdb -U django --if-exists ietf
|
||||
|
||||
#echo "Create new ietf DB..."
|
||||
#createdb -U django ietf
|
||||
#
|
||||
#echo "Enable citext extension..."
|
||||
#psql -U django -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'CREATE EXTENSION IF NOT EXISTS citext;'
|
||||
#
|
||||
#echo "Set schema search path for user django..."
|
||||
#psql -U django -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'ALTER USER django set search_path=ietf_utf8,django,public;'
|
||||
|
||||
# Extensions and search paths will be loaded from the dump
|
||||
echo "Import DB dump into ietf..."
|
||||
pg_restore --clean --if-exists --create -U django -d postgres ietf.dump
|
||||
|
||||
#echo "Set schema search path for user django..."
|
||||
#psql -U django -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'ALTER USER django set search_path=ietf_utf8,django,public;'
|
||||
|
||||
echo "Done!"
|
||||
|
|
Loading…
Reference in a new issue