Skip to content

Commit

Permalink
Merge pull request owncloud#727 from owncloud/waitForBrowserService
Browse files Browse the repository at this point in the history
[tests-only] Update CI to latest .drone.star
  • Loading branch information
dpakach authored Oct 25, 2021
2 parents 00ce919 + 7d88078 commit aa573b2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def jscodestyle(ctx):
"steps": [
{
"name": "coding-standard-js",
"image": "owncloudci/php:8.0",
"image": "owncloudci/nodejs:14",
"pull": "always",
"commands": [
"make test-js-style",
Expand Down Expand Up @@ -1112,6 +1112,7 @@ def acceptance(ctx):
setupElasticSearch(testConfig["esVersion"]) +
testConfig["extraSetup"] +
fixPermissions(testConfig["phpVersion"], testConfig["federatedServerNeeded"]) +
waitForBrowserService(testConfig["phpVersion"], isWebUI) +
[
({
"name": "acceptance-tests",
Expand Down Expand Up @@ -1370,6 +1371,18 @@ def browserService(browser):

return []

def waitForBrowserService(phpVersion, isWebUi):
if isWebUi:
return [{
"name": "wait-for-selenium",
"image": "owncloudci/php:%s" % phpVersion,
"pull": "always",
"commands": [
"wait-for-it -t 600 selenium:4444",
],
}]
return []

def emailService(emailNeeded):
if emailNeeded:
return [{
Expand Down

0 comments on commit aa573b2

Please sign in to comment.