From c0506b8cff6f4be8e9b5d15af7cc0ecb5c5b4d92 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 5 Nov 2013 12:42:20 +0100 Subject: [PATCH] skipping apc for php 5.5 on travis --- tests/unit/data/travis/apc-setup.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/unit/data/travis/apc-setup.sh b/tests/unit/data/travis/apc-setup.sh index e5e8734..3925267 100755 --- a/tests/unit/data/travis/apc-setup.sh +++ b/tests/unit/data/travis/apc-setup.sh @@ -1,2 +1,8 @@ -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 \ No newline at end of file +#!/bin/sh + +if [ "$(expr "$TRAVIS_PHP_VERSION" "<" "5.5")" -eq 1 ]; then + 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