Skip to content

Commit

Permalink
Install APC on Ubuntu trusty
Browse files Browse the repository at this point in the history
Trusty does not have APC preinstalled (see
travis-ci/travis-ci#5618,
travis-ci/travis-ci#6853) so we need to
install it manually using PECL. `yes ''` allows to skip prompts and fill
it with default values.
  • Loading branch information
arogachev authored and cebe committed Dec 1, 2016
1 parent 8c0a431 commit e94ca47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/data/travis/apc-setup.sh
Original file line number Diff line number Diff line change
@@ -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
fi

0 comments on commit e94ca47

Please sign in to comment.