From 95e3bce4b7cdfe85edd8e0f5df70aa10b87c09e2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Jul 2016 22:37:30 +0200 Subject: [PATCH] fixing php extension build for Travis --- .travis.ini | 4 ---- .travis.php7.ini | 4 ---- .travis.yml | 13 ++++++++++--- 3 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 .travis.ini delete mode 100644 .travis.php7.ini diff --git a/.travis.ini b/.travis.ini deleted file mode 100644 index e9687cd70b..0000000000 --- a/.travis.ini +++ /dev/null @@ -1,4 +0,0 @@ - -extension=apcu.so -extension=memcache.so -extension=memcached.so \ No newline at end of file diff --git a/.travis.php7.ini b/.travis.php7.ini deleted file mode 100644 index e9687cd70b..0000000000 --- a/.travis.php7.ini +++ /dev/null @@ -1,4 +0,0 @@ - -extension=apcu.so -extension=memcache.so -extension=memcached.so \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index f2160675d7..2c9032c5d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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