diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-06-14 16:03:59 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-06-14 16:03:59 +0200 |
commit | 859ca1f9bb8767903258bfaddebb81a93601e445 (patch) | |
tree | 787afc8c1d8a31829915ddeb8772882b4edea419 | |
parent | 6b0577c69916843cd59f3187a30b6dc6c4480aa5 (diff) | |
download | nextcloud-server-859ca1f9bb8767903258bfaddebb81a93601e445.tar.gz nextcloud-server-859ca1f9bb8767903258bfaddebb81a93601e445.zip |
Add integration tests
-rw-r--r-- | .drone.yml | 7 | ||||
-rwxr-xr-x | build/integration/run.sh | 9 |
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 |