do not run acceptance tests on merge commits
This commit is contained in:
1 file changed
+16
-16
+16
-16
@@ -31,12 +31,14 @@ config = {
|
|||||||
'webUIFiles',
|
'webUIFiles',
|
||||||
'webUILogin',
|
'webUILogin',
|
||||||
'webUINotifications',
|
'webUINotifications',
|
||||||
'webUIAccount',
|
|
||||||
'webUIPrivateLinks',
|
'webUIPrivateLinks',
|
||||||
],
|
],
|
||||||
'phoenixWebUI3': [
|
'phoenixWebUI3': [
|
||||||
|
'webUIAccount',
|
||||||
'webUIRenameFiles',
|
'webUIRenameFiles',
|
||||||
'webUIRenameFolders',
|
'webUIRenameFolders',
|
||||||
|
],
|
||||||
|
'phoenixWebUI4': [
|
||||||
'webUITrashbin',
|
'webUITrashbin',
|
||||||
'webUIUpload',
|
'webUIUpload',
|
||||||
# All tests in the following suites are skipped currently
|
# All tests in the following suites are skipped currently
|
||||||
@@ -81,6 +83,17 @@ def getCoreApiTestPipelineNames():
|
|||||||
names.append('Core-API-Tests-ocis-storage-%s' % runPart)
|
names.append('Core-API-Tests-ocis-storage-%s' % runPart)
|
||||||
return names
|
return names
|
||||||
|
|
||||||
|
def getDependsOnAllTestPipelines(ctx):
|
||||||
|
dependencies = getTestSuiteNames() + [ 'upload-coverage' ]
|
||||||
|
if ctx.build.ref != "refs/heads/master":
|
||||||
|
dependencies = getTestSuiteNames() + [
|
||||||
|
'upload-coverage',
|
||||||
|
'localApiTests-owncloud-storage',
|
||||||
|
'localApiTests-ocis-storage',
|
||||||
|
] + getCoreApiTestPipelineNames() + getUITestSuiteNames()
|
||||||
|
|
||||||
|
return dependencies
|
||||||
|
|
||||||
def main(ctx):
|
def main(ctx):
|
||||||
pipelines = []
|
pipelines = []
|
||||||
before = testPipelines(ctx)
|
before = testPipelines(ctx)
|
||||||
@@ -341,7 +354,6 @@ def localApiTests(ctx, coreBranch = 'master', coreCommit = '', storage = 'ownclo
|
|||||||
],
|
],
|
||||||
'trigger': {
|
'trigger': {
|
||||||
'ref': [
|
'ref': [
|
||||||
'refs/heads/master',
|
|
||||||
'refs/tags/v*',
|
'refs/tags/v*',
|
||||||
'refs/pull/**',
|
'refs/pull/**',
|
||||||
],
|
],
|
||||||
@@ -397,7 +409,6 @@ def coreApiTests(ctx, coreBranch = 'master', coreCommit = '', part_number = 1, n
|
|||||||
],
|
],
|
||||||
'trigger': {
|
'trigger': {
|
||||||
'ref': [
|
'ref': [
|
||||||
'refs/heads/master',
|
|
||||||
'refs/tags/v*',
|
'refs/tags/v*',
|
||||||
'refs/pull/**',
|
'refs/pull/**',
|
||||||
],
|
],
|
||||||
@@ -478,7 +489,6 @@ def uiTestPipeline(suiteName, phoenixBranch = 'master', phoenixCommit = '', stor
|
|||||||
],
|
],
|
||||||
'trigger': {
|
'trigger': {
|
||||||
'ref': [
|
'ref': [
|
||||||
'refs/heads/master',
|
|
||||||
'refs/tags/v*',
|
'refs/tags/v*',
|
||||||
'refs/pull/**',
|
'refs/pull/**',
|
||||||
],
|
],
|
||||||
@@ -548,12 +558,7 @@ def docker(ctx, arch):
|
|||||||
'temp': {},
|
'temp': {},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'depends_on':
|
'depends_on': getDependsOnAllTestPipelines(ctx),
|
||||||
getTestSuiteNames() + [
|
|
||||||
'upload-coverage',
|
|
||||||
'localApiTests-owncloud-storage',
|
|
||||||
'localApiTests-ocis-storage',
|
|
||||||
] + getCoreApiTestPipelineNames() + getUITestSuiteNames(),
|
|
||||||
'trigger': {
|
'trigger': {
|
||||||
'ref': [
|
'ref': [
|
||||||
'refs/heads/master',
|
'refs/heads/master',
|
||||||
@@ -704,12 +709,7 @@ def binary(ctx, name):
|
|||||||
'temp': {},
|
'temp': {},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'depends_on':
|
'depends_on': getDependsOnAllTestPipelines(ctx),
|
||||||
getTestSuiteNames() + [
|
|
||||||
'upload-coverage',
|
|
||||||
'localApiTests-owncloud-storage',
|
|
||||||
'localApiTests-ocis-storage',
|
|
||||||
] + getCoreApiTestPipelineNames() + getUITestSuiteNames(),
|
|
||||||
'trigger': {
|
'trigger': {
|
||||||
'ref': [
|
'ref': [
|
||||||
'refs/heads/master',
|
'refs/heads/master',
|
||||||
|
|||||||
Reference in new issue
Block a user