Signed-off-by: Morris Jobke <hey@morrisjobke.de>
- TESTS: carddavtester-old-endpoint
- DB: NODB
PHP: 5.4
+ ENABLE_REDIS: true
- DB: NODB
PHP: 5.5
+ ENABLE_REDIS: true
- DB: NODB
PHP: 5.6
+ ENABLE_REDIS: true
- DB: NODB
PHP: 7.0
+ ENABLE_REDIS: true
- DB: sqlite
PHP: 5.4
+ ENABLE_REDIS: true
- DB: sqlite
PHP: 5.5
+ ENABLE_REDIS: true
- DB: sqlite
PHP: 5.6
+ ENABLE_REDIS: true
- DB: sqlite
PHP: 7.0
+ ENABLE_REDIS: true
- DB: mysql
PHP: 5.6
+ ENABLE_REDIS: true
- DB: postgres
PHP: 5.6
+ ENABLE_REDIS: true
services:
cache:
image: redis
+ when:
+ matrix:
+ ENABLE_REDIS: true
postgres:
image: postgres
environment:
if [ -f config/autotest-storage-swift.config.php ]; then
rm config/autotest-storage-swift.config.php
fi
+ # Remove autotest redis config
+ if [ -f config/redis.config.php ]; then
+ rm config/redis.config.php
+ fi
}
# restore config on exit
fi
cp tests/preseed-config.php config/config.php
+ if [ "$ENABLE_REDIS" == "true" ] ; then
+ cp tests/redis.config.php config/redis.config.php
+ fi
+
_DB=$DB
# drop database
--- /dev/null
+<?php
+
+$CONFIG = [
+ 'memcache.local' => '\\OC\\Memcache\\Redis',
+ 'memcache.distributed' => '\\OC\\Memcache\\Redis',
+ 'memcache.locking' => '\\OC\\Memcache\\Redis',
+ 'redis' => [
+ 'host' => 'cache',
+ 'port' => 6379,
+ 'timeout' => 0,
+ ],
+];