separate docker-db from init-db

so we don't need docker on Travis
This commit is contained in:
Min RK
2017-09-27 19:02:55 +02:00
parent a4a2c9d068
commit df9e002b9a
4 changed files with 63 additions and 34 deletions

View File

@@ -0,0 +1,14 @@
set -e
MYSQL="mysql --user root -e "
PSQL="psql --user postgres -c "
set -x
# drop databases if they don't exist
$MYSQL 'DROP DATABASE jupyterhub_upgrade' 2>/dev/null || true
$PSQL 'DROP DATABASE jupyterhub_upgrade' 2>/dev/null || true
# create the databases
$MYSQL 'CREATE DATABASE jupyterhub_upgrade CHARACTER SET utf8 COLLATE utf8_general_ci;'
$PSQL 'CREATE DATABASE jupyterhub_upgrade;'