Add travis config
[m6w6/ext-pq] / travis / compile-php.sh
diff --git a/travis/compile-php.sh b/travis/compile-php.sh
new file mode 100755 (executable)
index 0000000..63c8142
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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