Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (24 sloc) 628 Bytes
#!/bin/bash
set -ef -o pipefail
if [ -z "$TRAVIS_PHP_VERSION" ]; then
echo "This script is meant to be executed on Travis CI."
exit 1
fi
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then
git clone https://github.com/redis/hiredis.git \
&& pushd hiredis \
&& git checkout v0.13.3 \
&& make \
&& sudo make install \
&& popd
git clone https://github.com/nrk/phpiredis.git \
&& pushd phpiredis \
&& git checkout php7 \
&& phpize \
&& ./configure --enable-phpiredis \
&& make \
&& make install \
&& popd
phpenv config-add phpiredis.ini
fi
composer self-update