diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-01-01 10:03:08 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-01-01 10:56:26 +0100 |
commit | a23a7602b7d550616a8fb83316a33ffb6e924487 (patch) | |
tree | d2817153e8a79219948d3d0c4725f05690b16165 /travis | |
parent | [ticket/15924] Install apc via pecl and remove nginx config check (diff) | |
download | phpbb-a23a7602b7d550616a8fb83316a33ffb6e924487.tar.gz phpbb-a23a7602b7d550616a8fb83316a33ffb6e924487.tar.bz2 phpbb-a23a7602b7d550616a8fb83316a33ffb6e924487.zip |
[ticket/15924] Enable APCu extension
PHPBB3-15924
Diffstat (limited to 'travis')
-rwxr-xr-x | travis/setup-php-extensions.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/travis/setup-php-extensions.sh b/travis/setup-php-extensions.sh index 347d7b5773..918f67cd47 100755 --- a/travis/setup-php-extensions.sh +++ b/travis/setup-php-extensions.sh @@ -53,6 +53,16 @@ else echo 'opcache.enable=0' >> "$php_ini_file" fi +# APCu +if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ] +then + echo 'Enabling APCu PHP extension' + printf "\n" | pecl install apcu + echo 'apc.enabled=1' >> "$php_ini_file" + echo 'apc.enable_cli=1' >> "$php_ini_file" +fi + + # redis # Disabled redis for now as it causes travis to fail # git clone git://github.com/nicolasff/phpredis.git redis |