aboutsummaryrefslogtreecommitdiffstats
path: root/autotest.sh
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-14 09:03:14 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-14 15:04:18 +0200
commit9a34c5051fca9c4e6f42669a524818efaa1abb81 (patch)
tree6abc7c353cb493185eacf2acb5b21dd3c43db73e /autotest.sh
parent3865c77279e3b74ce8c336ddf84b3cb555963939 (diff)
downloadnextcloud-server-9a34c5051fca9c4e6f42669a524818efaa1abb81.tar.gz
nextcloud-server-9a34c5051fca9c4e6f42669a524818efaa1abb81.zip
Fix drone
Fix service container host name check current folder fix redis for integration test Fix more hostnames Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'autotest.sh')
-rwxr-xr-xautotest.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/autotest.sh b/autotest.sh
index 069488a3346..307af64edb7 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -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