mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-05-04 09:19:38 +00:00
added new option (configure only )
This commit is contained in:
parent
1bcc64353d
commit
e3b266feb0
@ -21,6 +21,8 @@ def isLinux(step):
|
|||||||
def isAndroid(step):
|
def isAndroid(step):
|
||||||
return step.getProperty('Android');
|
return step.getProperty('Android');
|
||||||
|
|
||||||
|
def isConfigureonly(step):
|
||||||
|
return step.getProperty('configureonly');
|
||||||
|
|
||||||
def getArrayQtParams(text):
|
def getArrayQtParams(text):
|
||||||
array = text.split('\n')
|
array = text.split('\n')
|
||||||
@ -212,7 +214,7 @@ def windowsSteps():
|
|||||||
command = base.makeCommand,
|
command = base.makeCommand,
|
||||||
name = 'Build Qt for Windows',
|
name = 'Build Qt for Windows',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isWin(step),
|
doStepIf = lambda step : isWin(step) and not isConfigureonly(step),
|
||||||
|
|
||||||
description = 'run make for project',
|
description = 'run make for project',
|
||||||
),
|
),
|
||||||
@ -221,7 +223,7 @@ def windowsSteps():
|
|||||||
command = ['make', 'install', '-j2'],
|
command = ['make', 'install', '-j2'],
|
||||||
name = 'Install Qt for Windows',
|
name = 'Install Qt for Windows',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isWin(step),
|
doStepIf = lambda step : isWin(step) and not isConfigureonly(step),
|
||||||
|
|
||||||
description = 'run make for project',
|
description = 'run make for project',
|
||||||
),
|
),
|
||||||
@ -229,7 +231,7 @@ def windowsSteps():
|
|||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
command = cpGCCWindows,
|
command = cpGCCWindows,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isWin(step),
|
doStepIf = lambda step : isWin(step) and not isConfigureonly(step),
|
||||||
name = 'Copy gcc libs for Windows',
|
name = 'Copy gcc libs for Windows',
|
||||||
description = 'Copy extra libs',
|
description = 'Copy extra libs',
|
||||||
),
|
),
|
||||||
@ -237,14 +239,14 @@ def windowsSteps():
|
|||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
command = cpThreadWindows,
|
command = cpThreadWindows,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isWin(step),
|
doStepIf = lambda step : isWin(step) and not isConfigureonly(step),
|
||||||
name = 'Copy thread libs for Windows',
|
name = 'Copy thread libs for Windows',
|
||||||
description = 'Copy extra libs',
|
description = 'Copy extra libs',
|
||||||
),
|
),
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
command = lsWindows,
|
command = lsWindows,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isWin(step),
|
doStepIf = lambda step : isWin(step) and not isConfigureonly(step),
|
||||||
name = 'Create ls links for Windows',
|
name = 'Create ls links for Windows',
|
||||||
description = 'deploy qt',
|
description = 'deploy qt',
|
||||||
),
|
),
|
||||||
@ -280,7 +282,7 @@ def linuxSteps():
|
|||||||
command = base.makeCommand,
|
command = base.makeCommand,
|
||||||
name = 'Build Qt for Linux',
|
name = 'Build Qt for Linux',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isLinux(step),
|
doStepIf = lambda step : isLinux(step) and not isConfigureonly(step),
|
||||||
|
|
||||||
description = 'run make for project',
|
description = 'run make for project',
|
||||||
),
|
),
|
||||||
@ -289,7 +291,7 @@ def linuxSteps():
|
|||||||
command = ['make', 'install', '-j2'],
|
command = ['make', 'install', '-j2'],
|
||||||
name = 'Install Qt for Linux',
|
name = 'Install Qt for Linux',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isLinux(step),
|
doStepIf = lambda step : isLinux(step) and not isConfigureonly(step),
|
||||||
|
|
||||||
description = 'run make for project',
|
description = 'run make for project',
|
||||||
),
|
),
|
||||||
@ -297,7 +299,7 @@ def linuxSteps():
|
|||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
command = cpIcuLinux,
|
command = cpIcuLinux,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isLinux(step),
|
doStepIf = lambda step : isLinux(step) and not isConfigureonly(step),
|
||||||
name = 'Copy ICU libs for Linux',
|
name = 'Copy ICU libs for Linux',
|
||||||
description = 'Copy extra libs',
|
description = 'Copy extra libs',
|
||||||
),
|
),
|
||||||
@ -305,7 +307,7 @@ def linuxSteps():
|
|||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
command = lsLinux,
|
command = lsLinux,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isLinux(step),
|
doStepIf = lambda step : isLinux(step) and not isConfigureonly(step),
|
||||||
name = 'Create ls links for Linux',
|
name = 'Create ls links for Linux',
|
||||||
description = 'deploy qt',
|
description = 'deploy qt',
|
||||||
),
|
),
|
||||||
@ -341,7 +343,7 @@ def androidSteps():
|
|||||||
command = base.makeCommand,
|
command = base.makeCommand,
|
||||||
name = 'Build Qt for Android',
|
name = 'Build Qt for Android',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isAndroid(step),
|
doStepIf = lambda step : isAndroid(step) and not isConfigureonly(step),
|
||||||
|
|
||||||
description = 'run make for project',
|
description = 'run make for project',
|
||||||
),
|
),
|
||||||
@ -350,14 +352,14 @@ def androidSteps():
|
|||||||
command = ['make', 'install', '-j2'],
|
command = ['make', 'install', '-j2'],
|
||||||
name = 'Install Qt for Android',
|
name = 'Install Qt for Android',
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isAndroid(step),
|
doStepIf = lambda step : isAndroid(step) and not isConfigureonly(step),
|
||||||
|
|
||||||
description = 'run make for project',
|
description = 'run make for project',
|
||||||
),
|
),
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
command = lsAndroid,
|
command = lsAndroid,
|
||||||
haltOnFailure = True,
|
haltOnFailure = True,
|
||||||
doStepIf = lambda step : isAndroid(step),
|
doStepIf = lambda step : isAndroid(step) and not isConfigureonly(step),
|
||||||
name = 'Create ls links for Android',
|
name = 'Create ls links for Android',
|
||||||
description = 'deploy qt',
|
description = 'deploy qt',
|
||||||
),
|
),
|
||||||
@ -418,4 +420,12 @@ def getPropertyes():
|
|||||||
label = 'Android version Qt',
|
label = 'Android version Qt',
|
||||||
default = True
|
default = True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
util.BooleanParameter(
|
||||||
|
name = 'configureonly',
|
||||||
|
label = 'disable build and install qt (confugure only)',
|
||||||
|
default = False
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user