Add travis config
[m6w6/ext-pq] / travis / configure-postgres.sh
diff --git a/travis/configure-postgres.sh b/travis/configure-postgres.sh
new file mode 100755 (executable)
index 0000000..de5355c
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+psql -c 'create database pq_test;' -U postgres
+echo '<?php const PQ_DSN = "postgres://postgres@localhost/pq_test";' > ./tests/_setup.inc