aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-12-29 09:03:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-12-29 12:47:48 +0100
commit3256a1c79235cde867dcb8f7c0606b7a0f4b10e8 (patch)
treee8c739c14c4be217ee9a087869fffa7002271dbb
parent4a2a41191b077e2384076cd18db42c2e1afd3c6f (diff)
downloadnextcloud-server-3256a1c79235cde867dcb8f7c0606b7a0f4b10e8.tar.gz
nextcloud-server-3256a1c79235cde867dcb8f7c0606b7a0f4b10e8.zip
Add files_external webdav apache tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--.drone.yml14
-rwxr-xr-xapps/files_external/tests/env/start-webdav-apachedrone.sh26
-rwxr-xr-xapps/files_external/tests/env/stop-webdav-apachedrone.sh14
3 files changed, 54 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 5634c496a6c..20f6575f37f 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -130,6 +130,19 @@ pipeline:
when:
matrix:
TESTS: sqlite-php7.0-samba-non-native
+ sqlite-php7.0-webdav-apache:
+ image: nextcloudci/webdav-apache-php7.0
+ commands:
+ - apache2
+ - ./autotest-external.sh sqlite webdav-apachedrone
+ - 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-external-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-external-clover-sqlite.xml; fi"
+ - 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-external-clover-sqlite-webdav-apachedrone.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-external-clover-sqlite-webdav-apachedrone.xml; fi"
+ when:
+ matrix:
+ TESTS: sqlite-php7.0-webdav-apache
nodb-php5.6:
image: nextcloudci/php5.6:php5.6-7
commands:
@@ -452,6 +465,7 @@ matrix:
- TESTS: sqlite-php7.0-samba-native
- TESTS: sqlite-php7.0-samba-non-native
- TEST: memcache-memcached
+ - TESTS: sqlite-php7.0-webdav-apache
- DB: NODB
PHP: 5.6
- DB: NODB
diff --git a/apps/files_external/tests/env/start-webdav-apachedrone.sh b/apps/files_external/tests/env/start-webdav-apachedrone.sh
new file mode 100755
index 00000000000..9887cea5eee
--- /dev/null
+++ b/apps/files_external/tests/env/start-webdav-apachedrone.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+#
+# Nextcloud
+#
+
+# retrieve current folder to place the config in the parent folder
+thisFolder=`echo $0 | sed 's#env/start-webdav-apachedrone\.sh##'`
+
+if [ -z "$thisFolder" ]; then
+ thisFolder="."
+fi;
+
+cat > $thisFolder/config.webdav.php <<DELIM
+<?php
+
+return array(
+ 'run'=>true,
+ 'host'=>'127.0.0.1:80/webdav/',
+ 'user'=>'test',
+ 'password'=>'pass',
+ 'root'=>'',
+ 'wait'=> 0
+);
+
+DELIM
+
diff --git a/apps/files_external/tests/env/stop-webdav-apachedrone.sh b/apps/files_external/tests/env/stop-webdav-apachedrone.sh
new file mode 100755
index 00000000000..3c4b0492dd0
--- /dev/null
+++ b/apps/files_external/tests/env/stop-webdav-apachedrone.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+#
+# Nextcloud
+
+# retrieve current folder to remove the config from the parent folder
+thisFolder=`echo $0 | sed 's#env/stop-webdav-apachedrone\.sh##'`
+
+if [ -z "$thisFolder" ]; then
+ thisFolder="."
+fi;
+
+# cleanup
+rm $thisFolder/config.webdav.php
+