fixing php extension build for Travis

This commit is contained in:
Ralf Becker 2016-07-12 22:37:30 +02:00
parent 1d61c64e07
commit 95e3bce4b7
3 changed files with 10 additions and 11 deletions

View File

@ -1,4 +0,0 @@
extension=apcu.so
extension=memcache.so
extension=memcached.so

View File

@ -1,4 +0,0 @@
extension=apcu.so
extension=memcache.so
extension=memcached.so

View File

@ -32,19 +32,26 @@ group: edge
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y myrepos libpcre3-dev
- echo $(phpenv version-name)
- case $(phpenv version-name) in
"5.4"|"5.5"|"5.6")
"5.4")
yes "" | pecl install memcache
echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
yes "" | pecl install apcu-4.0.11;
echo "extension=apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
yes "" | pecl install igbinary;
echo "extension=igbinary.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
;;
"5.5"|"5.6")
yes "" | pecl install memcache
yes "" | pecl install apcu-4.0.11;
yes "" | pecl install igbinary;
;;
"7.0")
yes "" | pecl install apcu;
;;
esac
- echo "extension=apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- yes "" | pecl install memcache
- php -m
# - mysql -e 'create database egroupware'
- rm -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini