diff --git a/.travis.yml b/.travis.yml index 85c5c9959..8092c7ecc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,10 @@ before_script: - DATABASE=travis - USER=travis - PASSWORD= - - echo $USER + + # add apc cache + - chmod +x ./test/bin/install-apcu.sh && ./test/bin/install-apcu.sh + - phpenv config-add ./test/bin/apc.ini # fix username before default rules apply - sh -c "if [ '$DB' = 'pgsql' ]; then sed -i 's/'\''vz'\''/'\''postgres'\''/' etc/volkszaehler.conf.php; fi;" diff --git a/test/bin/apc.ini b/test/bin/apc.ini new file mode 100644 index 000000000..688768e8a --- /dev/null +++ b/test/bin/apc.ini @@ -0,0 +1,2 @@ +; your general apc settings go here +apc.enable_cli=1 diff --git a/test/bin/install-apcu.sh b/test/bin/install-apcu.sh new file mode 100644 index 000000000..ca4af2ecd --- /dev/null +++ b/test/bin/install-apcu.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "$TRAVIS_PHP_VERSION" == "5.3" ] || [ "$TRAVIS_PHP_VERSION" == "5.4" ] +then + exit 0 +fi + +echo "no" | pecl install apcu-beta \ No newline at end of file