Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-06-14 17:03:59 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-06-15 13:30:45 +0300
commit97ae4d8b00c8228ba5a013e81002e0c33a7c07b3 (patch)
treed84e18cd8170253fc9987e81f3a663673d30b57a
parent7a5093c43e1915046d299877f35b0f2822bc516c (diff)
Add integration tests
-rw-r--r--.drone.yml7
-rwxr-xr-xbuild/integration/run.sh9
2 files changed, 16 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index bfd173c1347..c5e3a2ebffb 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,4 +1,11 @@
build:
+ integration:
+ image: morrisjobke/nextcloud-ci-php7:1.0.3
+ commands:
+ - git submodule update --init
+ - ./occ maintenance:install --admin-pass=admin
+ - cd build/integration
+ - ./run.sh
jsunit:
image: morrisjobke/nextcloud-ci-jsunit:1.0.2
commands:
diff --git a/build/integration/run.sh b/build/integration/run.sh
index 5a222bda3e3..3725ba1af6f 100755
--- a/build/integration/run.sh
+++ b/build/integration/run.sh
@@ -1,5 +1,14 @@
#!/usr/bin/env bash
+COMPOSER=$(which composer)
+
+if [ -x "$COMPOSER" ]; then
+ echo "Using composer executable $COMPOSER"
+else
+ echo "Could not find composer executable" >&2
+ exit 1
+fi
+
composer install
SCENARIO_TO_RUN=$1