--- /dev/null
+language: c
+
+addons:
+ postgresql: "9.3"
+
+before_install:
+ - sudo apt-get update -qq
+ - sudo apt-get install -qq libpq-dev
+
+before_script:
+ - sudo ./travis/compile-php.sh
+ - sudo ./travis/compile-raphf.sh
+ - sudo ./travis/compile-ext.sh
+ - sudo ./travis/configure-postgres.sh
+
+script:
+ - REPORT_EXIT_STATUS=1 $HOME/bin/php ./run-tests.php -p $HOME/bin/php --show-diff
--- /dev/null
+#!/bin/sh -x
+
+set -e
+
+$HOME/bin/phpize
+./configure --with-php-config=$HOME/bin/php-config --with-pq
+
+make -j2 --quiet install
+
+echo 'extension=pq.so' > $HOME/php.d/20-pq.ini
--- /dev/null
+#!/bin/sh -x
+
+set -e
+TARGET_PHP_REF="PHP-5.6"
+
+mkdir -p $HOME/php
+mkdir -p $HOME/php.d
+git clone --depth=1 --branch=$TARGET_PHP_REF https://github.com/php/php-src $HOME/php/src
+
+cd $HOME/php/src
+./buildconf --force
+./configure --prefix=$HOME --with-config-file-scan-dir=$HOME/php.d --disable-all --enable-maintainer-zts --enable-json --with-mhash
+
+make -j2 --quiet install
--- /dev/null
+#!/bin/sh -x
+
+set -e
+
+git clone --depth 1 https://github.com/php/pecl-php-raphf $HOME/raphf
+cd $HOME/raphf
+
+$HOME/bin/phpize
+./configure --with-php-config=$HOME/bin/php-config --with-pq
+
+make -j2 --quiet install
+
+echo 'extension=raphf.so' > $HOME/php.d/10-raphf.ini
--- /dev/null
+#!/bin/sh -x
+
+psql -c 'create database pq_test;' -U postgres
+echo '<?php const PQ_DSN = "postgres://postgres@localhost/pq_test";' > ./tests/_setup.inc