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-15 17:17:03 +0300
committerGitHub <noreply@github.com>2016-06-15 17:17:03 +0300
commitae8f750039a5a7493a1fa08e8d54773b93cdc48b (patch)
tree5d509ef77b2081fc5fe0e761da2bedcedc5378a8
parent76eef55ff67e206799b6645db0f7a5827890b81d (diff)
parentbdc6d21da5f2035d1b7d8bf5015aa0b938cc1ce7 (diff)
Merge pull request #109 from nextcloud/stable9-ci-integration-tests
[stable9] Add integration tests
-rw-r--r--.drone.yml8
-rw-r--r--build/integration/features/provisioning-v1.feature1
-rwxr-xr-xbuild/integration/run.sh9
3 files changed, 18 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index bfd173c1347..9fde7b6ce5b 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:
@@ -6,6 +13,7 @@ build:
sqlite:
image: morrisjobke/nextcloud-ci-php7:1.0
commands:
+ - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
- git submodule update --init
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
- ./autotest.sh sqlite
diff --git a/build/integration/features/provisioning-v1.feature b/build/integration/features/provisioning-v1.feature
index 8c32c04523c..60dc4ee299b 100644
--- a/build/integration/features/provisioning-v1.feature
+++ b/build/integration/features/provisioning-v1.feature
@@ -282,6 +282,7 @@ Feature: provisioning
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And apps returned are
+ | admin_audit |
| comments |
| dav |
| federatedfilesharing |
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