1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-03 09:48:02 +01:00
ext-pq/travis/configure-postgres.sh

8 lines
240 B
Bash
Raw Normal View History

2014-12-14 15:37:43 +01:00
#!/bin/sh -x
2014-12-16 16:35:46 +01:00
PQ_CREATE_DB_SQL="CREATE DATABASE $PG_TEST_DB_NAME;"
PQ_DSN="postgres://$PG_TEST_DB_USER@localhost/$PG_TEST_DB_NAME"
psql -c "$PQ_CREATE_DB_SQL" -U $PG_TEST_DB_USER
echo "<?php const PQ_DSN = '$PQ_DSN';" > ./tests/_setup.inc