1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 17:28:35 +01:00
ext-pq/travis/compile-php.sh

20 lines
456 B
Bash
Raw Normal View History

2014-12-14 15:37:43 +01:00
#!/bin/sh -x
set -e
2014-12-16 16:35:46 +01:00
mkdir -p $HOME$BUILD_SRC_DIR
mkdir -p $HOME$BUILD_INSTALL_DIR/conf.d
2014-12-14 15:37:43 +01:00
2014-12-16 16:35:46 +01:00
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
2014-12-14 15:37:43 +01:00
./buildconf --force
2014-12-16 16:35:46 +01:00
./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
2014-12-14 15:37:43 +01:00
make -j2 --quiet install