Skip to content

Commit

Permalink
Merge pull request #250 from andig/travis-apcu
Browse files Browse the repository at this point in the history
Add apc(u) to travis for testing caching
  • Loading branch information
andig committed Feb 28, 2015
2 parents 94cd308 + ebb1fc4 commit 2455d72
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

# 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;"
Expand Down
2 changes: 2 additions & 0 deletions test/bin/apc.ini
@@ -0,0 +1,2 @@
; your general apc settings go here
apc.enable_cli=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 2455d72

Please sign in to comment.