diff options
-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 |