pickles/tests/travis.sh
Josh Sherman 823fe0759a Updated to only inject on non-HHVM
Saw someone else's .travis.yml that opted to not put those extension lines into
the INI when running on HHVM. Worth a shot!
2014-10-03 06:17:54 -04:00

17 lines
315 B
Bash
Executable file

#!/bin/sh
php -i
VERSION=`phpenv version-name`
if [ "${VERSION}" = 'hhvm' ]
then
PHPINI=/etc/hhvm/php.ini
else
PHPINI=~/.phpenv/versions/$VERSION/etc/php.ini
echo "extension = memcache.so" >> $PHPINI
echo "extension = memcached.so" >> $PHPINI
echo "extension = redis.so" >> $PHPINI
fi