mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-18 13:35:37 -04:00
[tests-only][ci] separate k6 tests pipeline (#7896)
* separate k6 pipeline * separate k6 pipeline
This commit is contained in:
@@ -281,6 +281,8 @@ def main(ctx):
|
||||
),
|
||||
)
|
||||
|
||||
pipelines = pipelines + k6LoadTests(ctx)
|
||||
|
||||
pipelines += checkStarlark()
|
||||
pipelineSanityChecks(ctx, pipelines)
|
||||
return pipelines
|
||||
@@ -339,9 +341,6 @@ def testPipelines(ctx):
|
||||
if "skip" not in config["e2eTests"] or not config["e2eTests"]["skip"]:
|
||||
pipelines += e2eTests(ctx)
|
||||
|
||||
if "skip" not in config["k6LoadTests"] or not config["k6LoadTests"]["skip"]:
|
||||
pipelines += k6LoadTests(ctx)
|
||||
|
||||
return pipelines
|
||||
|
||||
def getGoBinForTesting(ctx):
|
||||
@@ -2785,6 +2784,9 @@ def logRequests():
|
||||
}]
|
||||
|
||||
def k6LoadTests(ctx):
|
||||
if "skip" in config["k6LoadTests"] and config["k6LoadTests"]["skip"]:
|
||||
return []
|
||||
|
||||
ocis_git_base_url = "https://raw.githubusercontent.com/owncloud/ocis"
|
||||
script_link = "%s/%s/tests/config/drone/run_k6_tests.sh" % (ocis_git_base_url, ctx.build.commit)
|
||||
return [{
|
||||
|
||||
Reference in New Issue
Block a user