Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
[Tests-Only] use latest version of phoenix for UI tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dpakach committed May 19, 2020
1 parent f170476 commit 6bf0790
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -433,20 +433,46 @@ def uiTests(ctx):
},
]
},
{
'name': 'clone-build-phoenix',
'image': 'owncloud/node',
'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',
},
]
},
{
Expand Down Expand Up @@ -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': [
Expand Down

0 comments on commit 6bf0790

Please sign in to comment.