export DB_USER=wirecloud_ci
export DB_NAME=${DB_USER}

pip install psycopg2

createuser -U postgres -h ${DB_HOST} -p ${DB_PORT} ${DB_USER}
createdb -U postgres -h ${DB_HOST} -p ${DB_PORT} -O ${DB_USER} ${DB_NAME}
createdb -U postgres -h ${DB_HOST} -p ${DB_PORT} -O ${DB_USER} test_${DB_NAME}

cat ${WORKSPACE}/src/ci_scripts/db/postgres-conf.template >> $1/settings.py

export DB_USER=postgres
export DB_NAME=wirecloud_ci

pip install psycopg2

createdb -U postgres -h ${DB_HOST} -p ${DB_PORT} -O ${DB_USER} ${DB_NAME}

cat ${WORKSPACE}/src/ci_scripts/db/postgres-conf.template >> $1/settings.py

Use the postgres (admin) user for passing the CI tests
Use the postgres (admin) user for passing the CI tests
