Skip to content

Commit

Permalink
redis is valid for hhvm (#10384)
Browse files Browse the repository at this point in the history
fixes unit test failure
```php
JCacheStorageTest::testGetInstance with data set "defaultredis" ('redis', array(null, 'en-GB', true, null, 1462454997), 'JCacheStorageRedis')
Undefined variable: connection
/tests/unit/core/helper/helper.php:52
/libraries/joomla/cache/storage/redis.php:105
/libraries/joomla/cache/storage/redis.php:48
/libraries/joomla/cache/storage.php:169
/tests/unit/suites/libraries/joomla/cache/JCacheStorageTest.php:238
```
  • Loading branch information
photodude authored and wilsonge committed May 10, 2016
1 parent 9aa3d3e commit 0eafccc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ matrix:
services:
- mysql
- postgresql
env: INSTALL_APCU_BC_BETA="no" INSTALL_MEMCACHE="no" INSTALL_MEMCACHED="no" INSTALL_REDIS="no" # Disabled items that currently do not work in travis-ci hhvm
- redis-server
env: INSTALL_APCU_BC_BETA="no" INSTALL_MEMCACHE="no" INSTALL_MEMCACHED="no" # Disabled items that currently do not work in travis-ci hhvm
allow_failures:
- php: hhvm

Expand Down Expand Up @@ -64,7 +65,8 @@ before_script:
- if [[ $INSTALL_APCU == "yes" && $TRAVIS_PHP_VERSION = 5.* ]]; then printf "\n" | pecl install apcu-4.0.10 && phpenv config-add build/travis/phpenv/apcu-$TRAVIS_PHP_VERSION.ini; fi
- if [[ $INSTALL_APCU == "yes" && $TRAVIS_PHP_VERSION = 7.* ]]; then printf "\n" | pecl install apcu-beta && phpenv config-add build/travis/phpenv/apcu-$TRAVIS_PHP_VERSION.ini; fi
- if [[ $INSTALL_APCU_BC_BETA == "yes" ]]; then printf "\n" | pecl install apcu_bc-beta; fi
- if [[ $INSTALL_REDIS == "yes" ]]; then phpenv config-add build/travis/phpenv/redis.ini; fi
- if [[ $INSTALL_REDIS == "yes" && $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-add build/travis/phpenv/redis.ini; fi
- if [[ $INSTALL_REDIS == "yes" && $TRAVIS_PHP_VERSION = hhvm ]]; then cat build/travis/phpenv/redis.ini >> /etc/hhvm/php.ini; fi

script:
- libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml
Expand Down

0 comments on commit 0eafccc

Please sign in to comment.