]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix drone
authorMorris Jobke <hey@morrisjobke.de>
Fri, 14 Jul 2017 07:03:14 +0000 (09:03 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 14 Jul 2017 11:02:16 +0000 (13:02 +0200)
Fix service container host name
check current folder
fix redis for integration test
Fix more hostnames

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
.drone.yml
autotest.sh
tests/redis-cluster.config.php
tests/redis.config.php

index 11458a30398d308d6a15f2895b2f3432f8751b30..0dc96e84d5e521f3fa6afaf17865d09110ec344e 100644 (file)
@@ -247,6 +247,9 @@ pipeline:
     image: nextcloudci/integration-php7.0:integration-php7.0-3
     commands:
       - ./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.distributed
       - ./occ app:enable testing
index 069488a3346d70f2f9ac68b073ee82a6cd0e3f99..307af64edb7a81e3536c15a05c2886099e62659d 100755 (executable)
@@ -212,7 +212,7 @@ function execute_tests {
                 fi
                 mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true
             else
-                DATABASEHOST=127.0.0.1
+                DATABASEHOST=mysql
             fi
                fi
         echo "Waiting for MySQL initialisation ..."
@@ -246,7 +246,7 @@ function execute_tests {
                                fi
                                mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true
                        else
-                               DATABASEHOST=127.0.0.1
+                               DATABASEHOST=mysqlmb4
                        fi
                fi
 
@@ -308,6 +308,9 @@ function execute_tests {
 
                        echo "Postgres is up."
                else
+                       if [ ! -z "$DRONE" ] ; then
+                               DATABASEHOST=postgres
+                       fi
                        echo "Waiting for Postgres to be available ..."
                        if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
                                echo "[ERROR] Waited 60 seconds, no response" >&2
index c7df2a91854ca5400852ac9e297ca768875c095d..e255d123f605202346738d0d1bba79d1cda92c7f 100644 (file)
@@ -6,12 +6,12 @@ $CONFIG = [
        'memcache.locking' => '\\OC\\Memcache\\Redis',
        'redis.cluster' => [
                'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
-                       'localhost:7000',
-                       'localhost:7001',
-                       'localhost:7002',
-                       'localhost:7003',
-                       'localhost:7004',
-                       'localhost:7005'
+                       'cache-cluster:7000',
+                       'cache-cluster:7001',
+                       'cache-cluster:7002',
+                       'cache-cluster:7003',
+                       'cache-cluster:7004',
+                       'cache-cluster:7005'
                ],
                'timeout' => 0.0,
                'read_timeout' => 0.0,
index 2ff46ec6728156b7e031c8e99eab9d716b659e2a..9d3f1eca63eacaaea272cfceff32a39cc67d3156 100644 (file)
@@ -5,7 +5,7 @@ $CONFIG = [
        'memcache.distributed' => '\\OC\\Memcache\\Redis',
        'memcache.locking' => '\\OC\\Memcache\\Redis',
        'redis' => [
-               'host' => 'localhost',
+               'host' => 'cache',
                'port' => 6379,
                'timeout' => 0,
        ],