1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
amp/travis/install-pcov.sh

27 lines
589 B
Bash
Raw Normal View History

2019-09-21 23:17:45 +02:00
#!/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();')";