From 63f5f54ece7f40d6b5e42895fe254569417e4864 Mon Sep 17 00:00:00 2001 From: Dipak Acharya Date: Tue, 19 May 2020 09:59:57 +0545 Subject: [PATCH] [Tests-Only] use latest version of phoenix for UI tests in CI --- .drone.star | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.drone.star b/.drone.star index e9c9f661a..f960c7ff8 100644 --- a/.drone.star +++ b/.drone.star @@ -433,20 +433,46 @@ def uiTests(ctx): }, ] }, + { + 'name': 'clone-build-phoenix', + 'image': 'owncloudci/nodejs:10', + 'pull': 'always', + 'commands': [ + 'git clone -b master --depth=1 https://github.com/owncloud/phoenix.git /srv/app/uitestrunner', + 'cd /srv/app/uitestrunner', + 'yarn install --all', + 'yarn dist', + ], + 'volumes': [ + { + 'name': 'config', + 'path': '/srv/config', + }, + { + 'name': 'gopath', + 'path': '/srv/app', + }, + ] + }, { 'name': 'phoenix', 'image': 'owncloud/ocis-phoenix', 'pull': 'always', 'detach': True, 'environment': { - 'PHOENIX_WEB_CONFIG': '/srv/config/drone/config.json', - 'PHOENIX_OIDC_CLIENT_ID': 'phoenix' + 'PHOENIX_WEB_CONFIG': '/srv/config/drone/config.json', + 'PHOENIX_OIDC_CLIENT_ID': 'phoenix', + 'PHOENIX_ASSET_PATH': '/srv/app/uitestrunner/dist' }, 'volumes': [ { 'name': 'config', 'path': '/srv/config', }, + { + 'name': 'gopath', + 'path': '/srv/app', + }, ] }, { @@ -509,9 +535,7 @@ def uiTests(ctx): 'commands': [ 'ls -la /srv/config/drone', 'git clone https://github.com/owncloud/testing.git /srv/app/testingapp', - 'git clone -b master --depth=1 https://github.com/owncloud/phoenix.git /srv/app/uitestrunner', 'cd /srv/app/uitestrunner', - 'yarn install --all', 'yarn run acceptance-tests-drone' ], 'volumes': [