1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00
ext-pq/travis/configure-postgres.sh
2014-12-16 17:15:33 +00:00

8 lines
240 B
Bash
Executable File

#!/bin/sh -x
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