Merge pull request #5724 from nextcloud/fix-drone

Fix drone
This commit is contained in:
Morris Jobke 2017-07-14 23:33:13 +02:00 committed by GitHub
commit aa0a1c4174
4 changed files with 25 additions and 19 deletions

View File

@ -247,6 +247,9 @@ pipeline:
image: nextcloudci/integration-php7.0:integration-php7.0-4 image: nextcloudci/integration-php7.0:integration-php7.0-4
commands: commands:
- ./occ maintenance:install --admin-pass=admin - ./occ maintenance:install --admin-pass=admin
- ./occ config:system:set redis host --value=cache
- ./occ config:system:set redis port --value=6379 --type=integer
- ./occ config:system:set redis timeout --value=0 --type=integer
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
- ./occ app:enable testing - ./occ app:enable testing
@ -561,12 +564,12 @@ matrix:
- TESTS: integration-transfer-ownership-features - TESTS: integration-transfer-ownership-features
- TESTS: integration-ldap-features - TESTS: integration-ldap-features
- TESTS: integration-trashbin - TESTS: integration-trashbin
- TESTS: acceptance # - TESTS: acceptance
TESTS-ACCEPTANCE: access-levels # TESTS-ACCEPTANCE: access-levels
- TESTS: acceptance # - TESTS: acceptance
TESTS-ACCEPTANCE: app-files # TESTS-ACCEPTANCE: app-files
- TESTS: acceptance # - TESTS: acceptance
TESTS-ACCEPTANCE: login # TESTS-ACCEPTANCE: login
- TESTS: jsunit - TESTS: jsunit
- TESTS: syntax-php5.6 - TESTS: syntax-php5.6
- TESTS: syntax-php7.0 - TESTS: syntax-php7.0
@ -577,13 +580,13 @@ matrix:
- TESTS: caldavtester-new-endpoint - TESTS: caldavtester-new-endpoint
- TESTS: carddavtester-new-endpoint - TESTS: carddavtester-new-endpoint
- TESTS: carddavtester-old-endpoint - TESTS: carddavtester-old-endpoint
- TESTS: object-store # - TESTS: object-store
OBJECT_STORE: s3 # OBJECT_STORE: s3
- TESTS: sqlite-php7.0-samba-native - TESTS: sqlite-php7.0-samba-native
- TESTS: sqlite-php7.0-samba-non-native - TESTS: sqlite-php7.0-samba-non-native
- TEST: memcache-memcached - TEST: memcache-memcached
- TEST: memcache-redis-cluster # - TEST: memcache-redis-cluster
ENABLE_REDIS_CLUSTER: true # ENABLE_REDIS_CLUSTER: true
- TESTS: sqlite-php7.0-webdav-apache - TESTS: sqlite-php7.0-webdav-apache
ENABLE_REDIS: true ENABLE_REDIS: true
- DB: NODB - DB: NODB

View File

@ -212,7 +212,7 @@ function execute_tests {
fi fi
mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true
else else
DATABASEHOST=127.0.0.1 DATABASEHOST=mysql
fi fi
fi fi
echo "Waiting for MySQL initialisation ..." echo "Waiting for MySQL initialisation ..."
@ -246,7 +246,7 @@ function execute_tests {
fi fi
mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true
else else
DATABASEHOST=127.0.0.1 DATABASEHOST=mysqlmb4
fi fi
fi fi
@ -308,6 +308,9 @@ function execute_tests {
echo "Postgres is up." echo "Postgres is up."
else else
if [ ! -z "$DRONE" ] ; then
DATABASEHOST=postgres
fi
echo "Waiting for Postgres to be available ..." echo "Waiting for Postgres to be available ..."
if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
echo "[ERROR] Waited 60 seconds, no response" >&2 echo "[ERROR] Waited 60 seconds, no response" >&2

View File

@ -6,12 +6,12 @@ $CONFIG = [
'memcache.locking' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis.cluster' => [ 'redis.cluster' => [
'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required 'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
'localhost:7000', 'cache-cluster:7000',
'localhost:7001', 'cache-cluster:7001',
'localhost:7002', 'cache-cluster:7002',
'localhost:7003', 'cache-cluster:7003',
'localhost:7004', 'cache-cluster:7004',
'localhost:7005' 'cache-cluster:7005'
], ],
'timeout' => 0.0, 'timeout' => 0.0,
'read_timeout' => 0.0, 'read_timeout' => 0.0,

View File

@ -5,7 +5,7 @@ $CONFIG = [
'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => [ 'redis' => [
'host' => 'localhost', 'host' => 'cache',
'port' => 6379, 'port' => 6379,
'timeout' => 0, 'timeout' => 0,
], ],