mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-24 04:58:31 -05:00
Merge pull request #4318 from owncloud/runEverythingE2etest
Run e2e at every PR
This commit is contained in:
+7
-2
@@ -892,6 +892,7 @@ def e2eTests(ctx):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
e2eTestsSteps = \
|
e2eTestsSteps = \
|
||||||
|
skipIfUnchanged(ctx, "e2e-tests") + \
|
||||||
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + \
|
restoreBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin/ocis") + \
|
||||||
restoreBuildArtifactCache(ctx, "web-dist", "webTestRunner") + \
|
restoreBuildArtifactCache(ctx, "web-dist", "webTestRunner") + \
|
||||||
yarnInstallE2eTests() + \
|
yarnInstallE2eTests() + \
|
||||||
@@ -900,7 +901,10 @@ def e2eTests(ctx):
|
|||||||
uploadTracingResult(ctx) + \
|
uploadTracingResult(ctx) + \
|
||||||
publishTracingResult(ctx, "e2e test")
|
publishTracingResult(ctx, "e2e test")
|
||||||
|
|
||||||
if ("full-ci" in ctx.build.title.lower() or ctx.build.event == "cron"):
|
if ("skip-e2e" in ctx.build.title.lower()):
|
||||||
|
return []
|
||||||
|
|
||||||
|
if (ctx.build.event != "tag"):
|
||||||
return [{
|
return [{
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
"type": "docker",
|
"type": "docker",
|
||||||
@@ -910,7 +914,6 @@ def e2eTests(ctx):
|
|||||||
"trigger": e2e_trigger,
|
"trigger": e2e_trigger,
|
||||||
"volumes": e2e_volumes,
|
"volumes": e2e_volumes,
|
||||||
}]
|
}]
|
||||||
return []
|
|
||||||
|
|
||||||
def uploadTracingResult(ctx):
|
def uploadTracingResult(ctx):
|
||||||
return [{
|
return [{
|
||||||
@@ -2043,6 +2046,8 @@ def skipIfUnchanged(ctx, type):
|
|||||||
skip = base + unit + acceptance
|
skip = base + unit + acceptance
|
||||||
if type == "cache":
|
if type == "cache":
|
||||||
skip = base
|
skip = base
|
||||||
|
if type == "e2e-tests":
|
||||||
|
skip = base + unit
|
||||||
if len(skip) == 0:
|
if len(skip) == 0:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user