X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=travis%2Fconfigure-postgres.sh;h=09a41e24ea67651a546091dcbc8415ca2947ff78;hp=de5355ce9b2e90499bcbe2f8649d0b2d89f48e16;hb=e7ce3fd45d17058f92ce219a34e560226cf72231;hpb=4822c94ec2704ec8cdf95105485554cca05b2df3 diff --git a/travis/configure-postgres.sh b/travis/configure-postgres.sh index de5355c..09a41e2 100755 --- a/travis/configure-postgres.sh +++ b/travis/configure-postgres.sh @@ -1,4 +1,7 @@ #!/bin/sh -x -psql -c 'create database pq_test;' -U postgres -echo ' ./tests/_setup.inc +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 " ./tests/_setup.inc