From 859ca1f9bb8767903258bfaddebb81a93601e445 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 14 Jun 2016 16:03:59 +0200 Subject: [PATCH] Add integration tests --- .drone.yml | 7 +++++++ build/integration/run.sh | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index bfd173c134..c5e3a2ebff 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 5a222bda3e..3725ba1af6 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