-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,12 +25,11 @@ OC_UBUNTU = "owncloud/ubuntu:20.04" | |
# https://github.com/owncloud/client/issues/10070 | ||
OC_CI_CLIENT_FEDORA = "owncloudci/client:fedora-39-amd64" | ||
OC_CI_SQUISH = "sawjan/squish:export-session" | ||
OC_CI_SQUISH_UP = "owncloudci/squish:fedora-39-7.2.1-qt66x-linux64" | ||
|
||
PLUGINS_GIT_ACTION = "plugins/git-action:1" | ||
PLUGINS_S3 = "plugins/s3:1.3" | ||
PLUGINS_S3 = "plugins/s3" | ||
PLUGINS_SLACK = "plugins/slack" | ||
TOOLHIPPIE_CALENS = "toolhippie/calens:0.4.0" | ||
TOOLHIPPIE_CALENS = "toolhippie/calens:latest" | ||
|
||
# npm packages to install | ||
NPM_GHERLINT = "@gherlint/[email protected]" | ||
|
@@ -128,12 +127,6 @@ config = { | |
"tags": "~@skipOnOCIS", | ||
"skip": False, | ||
}, | ||
"ocis-2": { | ||
"version": "latest", | ||
# comma separated list of tags to be used for filtering. E.g. "@tag1,@tag2" | ||
"tags": "~@skipOnOCIS", | ||
"skip": False, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
@@ -145,11 +138,10 @@ def main(ctx): | |
unit_tests = unit_test_pipeline(ctx) | ||
gui_tests = gui_test_pipeline(ctx) | ||
|
||
return gui_tests | ||
# return pipelines + \ | ||
# unit_tests + \ | ||
# gui_tests + \ | ||
# pipelinesDependsOn(notification(), unit_tests + gui_tests) | ||
return pipelines + \ | ||
unit_tests + \ | ||
gui_tests + \ | ||
pipelinesDependsOn(notification(), unit_tests + gui_tests) | ||
|
||
def from_secret(name): | ||
return { | ||
|
@@ -211,7 +203,6 @@ def gui_test_pipeline(ctx): | |
for server, params in config["gui-tests"]["servers"].items(): | ||
squish_parameters = [ | ||
"--testsuite %s" % dir["guiTest"], | ||
"--testcase %s/tst_loginLogout" % dir["guiTest"], | ||
"--reportgen html,%s" % dir["guiTestReport"], | ||
"--envvar QT_LOGGING_RULES=sync.httplogger=true;gui.socketapi=false", | ||
"--tags ~@skip", | ||
|
@@ -329,15 +320,15 @@ def unit_tests(image = OC_CI_CLIENT): | |
def gui_tests(squish_parameters = "", server_type = "oc10"): | ||
return [{ | ||
"name": "GUItests", | ||
"image": OC_CI_SQUISH, # if server_type == "ocis" else OC_CI_SQUISH_UP, | ||
"image": OC_CI_SQUISH, | ||
"environment": { | ||
"LICENSEKEY": from_secret("SQUISH_LICENSEKEY"), | ||
"GUI_TEST_REPORT_DIR": dir["guiTestReport"], | ||
"CLIENT_REPO": dir["base"], | ||
"MIDDLEWARE_URL": "http://testmiddleware:3000/", | ||
"BACKEND_HOST": "http://owncloud/" if server_type == "oc10" else "https://ocis:9200", | ||
"SECURE_BACKEND_HOST": "https://owncloud/" if server_type == "oc10" else "https://ocis:9200", | ||
"OCIS": "true" if "ocis" in server_type else "false", | ||
"OCIS": "true" if server_type == "ocis" else "false", | ||
"SERVER_INI": "%s/drone/server.ini" % dir["guiTest"], | ||
"SQUISH_PARAMETERS": squish_parameters, | ||
"STACKTRACE_FILE": "%s/stacktrace.log" % dir["guiTestReport"], | ||
|
@@ -587,7 +578,7 @@ def testMiddlewareService(server_type = "oc10"): | |
"REMOTE_UPLOAD_DIR": "/uploads", | ||
} | ||
|
||
if "ocis" in server_type: | ||
if server_type == "ocis": | ||
environment["BACKEND_HOST"] = "https://ocis:9200" | ||
environment["TEST_WITH_GRAPH_API"] = "true" | ||
environment["RUN_ON_OCIS"] = "true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters