Merge branch 'meta/travis'
[m6w6/ext-pq] / travis / compile-php.sh
1 #!/bin/sh -x
2
3 set -e
4 TARGET_PHP_REF="PHP-5.6"
5
6 mkdir -p $HOME/php
7 mkdir -p $HOME/php.d
8 git clone --depth=1 --branch=$TARGET_PHP_REF https://github.com/php/php-src $HOME/php/src
9
10 cd $HOME/php/src
11 ./buildconf --force
12 ./configure --prefix=$HOME --with-config-file-scan-dir=$HOME/php.d --disable-all --enable-maintainer-zts --enable-json --with-mhash
13
14 make -j2 --quiet install