aboutsummaryrefslogtreecommitdiffstats
path: root/autotest.sh
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-06-21 15:41:29 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-06-21 16:05:48 +0200
commit6583a2fef031fb9aafdc2dc1ab901e8780d45029 (patch)
treea9f3c84d9979ff46153d0ff745953a04a200ad84 /autotest.sh
parent097cba8b38331b578895cacb8cce9d2458a765cd (diff)
downloadnextcloud-server-6583a2fef031fb9aafdc2dc1ab901e8780d45029.tar.gz
nextcloud-server-6583a2fef031fb9aafdc2dc1ab901e8780d45029.zip
Add postgres to CI
Diffstat (limited to 'autotest.sh')
-rwxr-xr-xautotest.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/autotest.sh b/autotest.sh
index 57d65e692d4..4dda2be43e5 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -253,7 +253,9 @@ function execute_tests {
echo "Postgres is up."
else
- dropdb -U "$DATABASEUSER" "$DATABASENAME" || true
+ if [ -z "$DRONE" ] ; then # no need to drop the DB when we are on CI
+ dropdb -U "$DATABASEUSER" "$DATABASENAME" || true
+ fi
fi
fi
if [ "$DB" == "oci" ] ; then