X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=travis%2Fcompile-php.sh;h=83b05371d8f48cfc1612bd7eb8290d696a9573dd;hp=63c8142a7dbe0ef94dbe68bdae487dd56448f6fb;hb=e7ce3fd45d17058f92ce219a34e560226cf72231;hpb=4822c94ec2704ec8cdf95105485554cca05b2df3 diff --git a/travis/compile-php.sh b/travis/compile-php.sh index 63c8142..83b0537 100755 --- a/travis/compile-php.sh +++ b/travis/compile-php.sh @@ -1,14 +1,19 @@ #!/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 +mkdir -p $HOME$BUILD_SRC_DIR +mkdir -p $HOME$BUILD_INSTALL_DIR/conf.d -cd $HOME/php/src +git clone --depth=1 --branch=$PHP_TARGET_REF https://github.com/php/php-src $HOME$BUILD_SRC_DIR/php-src + +cd $HOME$BUILD_SRC_DIR/php-src ./buildconf --force -./configure --prefix=$HOME --with-config-file-scan-dir=$HOME/php.d --disable-all --enable-maintainer-zts --enable-json --with-mhash +./configure --quiet \ + --prefix=$HOME$BUILD_INSTALL_DIR \ + --with-config-file-scan-dir=$HOME$BUILD_INSTALL_DIR/conf.d \ + --disable-all \ + $PHP_CONFIGURE_OPTS \ + $PHP_EXTENSIONS make -j2 --quiet install