summaryrefslogtreecommitdiffstats
path: root/.drone.jsonnet
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-25 09:48:18 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-25 09:48:59 +0100
commita2d87adee58e6b769f33166112ccbd1377474b85 (patch)
tree9f925de89b750d8dc41e8ec17d4535aa25dada0a /.drone.jsonnet
parent0ddc5a5863e733438285cd692d0535962ee927b5 (diff)
fix(CI): Run "composer install" in integration tests before enabling the app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.drone.jsonnet')
-rw-r--r--.drone.jsonnet11
1 files changed, 6 insertions, 5 deletions
diff --git a/.drone.jsonnet b/.drone.jsonnet
index 86b7f849e..0031bfb84 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -21,9 +21,14 @@ local Pipeline(test_set, database, services) = {
},
commands: [
"bash tests/drone-run-integration-tests.sh || exit 0",
+ "composer --version",
+ "composer self-update --2",
"wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh",
"bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST",
"cd ../server",
+ "cd apps/$APP_NAME",
+ "composer install --no-dev",
+ "cd ../..",
"./occ app:enable $APP_NAME",
"git clone --depth 1 -b $NOTIFICATIONS_BRANCH https://github.com/nextcloud/notifications apps/notifications",
"./occ app:enable notifications"
@@ -32,11 +37,7 @@ local Pipeline(test_set, database, services) = {
"git clone --depth 1 -b $GUESTS_BRANCH https://github.com/nextcloud/guests apps/guests"
] else []
) + [
- "cd apps/$APP_NAME",
- "composer --version",
- "composer self-update --2",
- "composer install",
- "cd tests/integration/",
+ "cd apps/$APP_NAME/tests/integration/",
"bash run.sh features/"+test_set
]
}