Added script to set up extension
As per https://github.com/travis-ci/travis-ci/issues/2523 it appears that the php.ini on hhvm is in a different place. Created a script to write the extensions to the right php.ini based on the environment.
This commit is contained in:
parent
31f4c32fb0
commit
5b2f483fa5
2 changed files with 15 additions and 3 deletions
14
tests/travis.sh
Normal file
14
tests/travis.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
VERSION=`phpenv version-name`
|
||||
|
||||
if [ "$VERSION" -eq "hhvm" ]
|
||||
then
|
||||
PHPINI=/etc/hhvm/php.ini
|
||||
else
|
||||
PHPINI="~/.phpenv/versions/$VERSION/etc/php.ini"
|
||||
fi
|
||||
|
||||
echo "extension = memcache.so" >> $PHPINI
|
||||
echo "extension = memcached.so" >> $PHPINI
|
||||
echo "extension = redis.so" >> $PHPINI
|
Loading…
Add table
Add a link
Reference in a new issue