mirror of
https://github.com/danog/amp.git
synced 2024-12-11 08:59:46 +01:00
27 lines
589 B
Bash
Executable File
27 lines
589 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
# required for pcov/clobber
|
|
curl -LS https://pecl.php.net/get/uopz | tar -xz \
|
|
&& pushd uopz-* \
|
|
&& phpize \
|
|
&& ./configure --enable-uopz \
|
|
&& make -j4 \
|
|
&& make install \
|
|
&& popd \
|
|
&& echo "extension=uopz.so" >> "$(php -r 'echo php_ini_loaded_file();')";
|
|
|
|
curl -LS https://pecl.php.net/get/pcov | tar -xz \
|
|
&& pushd pcov-* \
|
|
&& phpize \
|
|
&& ./configure --enable-pcov \
|
|
&& make \
|
|
&& make install \
|
|
&& popd \
|
|
&& echo "extension=pcov.so" >> "$(php -r 'echo php_ini_loaded_file();')";
|