From e94ca4793be2c00659e3ebd7f2bf29741ef3f593 Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Thu, 1 Dec 2016 10:50:21 +0100 Subject: [PATCH] Install APC on Ubuntu trusty Trusty does not have APC preinstalled (see https://github.com/travis-ci/travis-ci/issues/5618, https://github.com/travis-ci/travis-ci/issues/6853) so we need to install it manually using PECL. `yes ''` allows to skip prompts and fill it with default values. --- tests/data/travis/apc-setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/data/travis/apc-setup.sh b/tests/data/travis/apc-setup.sh index d64e8a53983..d9b93a0cfb2 100755 --- a/tests/data/travis/apc-setup.sh +++ b/tests/data/travis/apc-setup.sh @@ -1,8 +1,9 @@ #!/bin/sh -e if [ "$(expr "$TRAVIS_PHP_VERSION" "<" "5.5")" -eq 1 ]; then - echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + yes '' | pecl install apc + #echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini echo "apc.enable_cli = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini else echo "Not installing APC as it is not available in PHP 5.5 anymore." -fi \ No newline at end of file +fi