Skip to content

Commit

Permalink
Add apc(u) to travis for testing caching
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 21, 2015
1 parent e50a49a commit d57f7de
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -32,7 +32,10 @@ before_script:
- DATABASE=travis
- USER=travis
- PASSWORD=
- echo $USER

- chmod +x ./test/bin/install-apcu.sh && ./test/bin/install-apcu.sh
- phpenv config-add ./test/bin/apc.ini
- php -r "phpinfo();"

# fix username before default rules apply
- sh -c "if [ '$DB' = 'pgsql' ]; then sed -i 's/'\''vz'\''/'\''postgres'\''/' etc/volkszaehler.conf.php; fi;"
Expand Down
2 changes: 2 additions & 0 deletions test/bin/apc.ini
@@ -0,0 +1,2 @@
; your general apc settings go here
apc.cli_enabled=1
8 changes: 8 additions & 0 deletions 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

0 comments on commit d57f7de

Please sign in to comment.