Merge pull request #2788 from nextcloud/memcached-ci

Add Memcached CI
This commit is contained in:
Lukas Reschke 2016-12-22 12:06:42 +01:00 committed by GitHub
commit 7f8d22e710
2 changed files with 13 additions and 1 deletions

View File

@ -402,6 +402,17 @@ pipeline:
when:
matrix:
TESTS: db-codecov
memcache-memcached:
image: nextcloudci/php7.0-memcached:php7.0-memcached-6
commands:
- service memcached restart
- ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
- wget https://codecov.io/bash -O codecov.sh
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
when:
matrix:
TEST: memcache-memcached
matrix:
include:
- TESTS: signed-off-check
@ -440,6 +451,7 @@ matrix:
- TESTS: carddavtester
- TESTS: sqlite-php7.0-samba-native
- TESTS: sqlite-php7.0-samba-non-native
- TEST: memcache-memcached
- DB: NODB
PHP: 5.6
- DB: NODB

View File

@ -61,7 +61,7 @@ class Memcached extends Cache implements IMemcache {
\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
// Enable Binary Protocol
\Memcached::OPT_BINARY_PROTOCOL => true,
//\Memcached::OPT_BINARY_PROTOCOL => true,
];
// by default enable igbinary serializer if available
if (\Memcached::HAVE_IGBINARY) {