mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-28 14:44:36 +00:00
57 lines
1.6 KiB
Python
57 lines
1.6 KiB
Python
# This Python file uses the following encoding: utf-8
|
|
|
|
from BuildBotLib.cmake import CMake
|
|
from buildbot.plugins import util
|
|
|
|
|
|
class Docs(CMake):
|
|
|
|
def __init__(self, platform):
|
|
CMake.__init__(self, platform)
|
|
|
|
def generatePlatformSteps(self, platform):
|
|
|
|
platformXcmd = {
|
|
CMake.P_Linux: self.linuxXmakeCmd,
|
|
CMake.P_Windows: self.windowsXmakeCmd,
|
|
CMake.P_Android: self.androidXmakeCmd,
|
|
CMake.P_Wasm: self.wasmXmakeCmd,
|
|
}
|
|
|
|
res = []
|
|
|
|
res += [self.generateStep(platformXcmd[platform],
|
|
platform,
|
|
self.makePrefix() + 'Make',
|
|
lambda step: True)]
|
|
|
|
res += [self.generateStep(self.makeTarget('doc'),
|
|
platform,
|
|
'Generate docs for the project',
|
|
self.isDeploy)]
|
|
|
|
def move(props):
|
|
return 'mv docs ' + str(props.getProperty('copyFolder'))
|
|
|
|
res += [self.generateStep(move,
|
|
platform,
|
|
'moveDocs',
|
|
self.isDeploy)]
|
|
|
|
return res
|
|
|
|
def getPropertyes(self):
|
|
|
|
return [
|
|
util.BooleanParameter(
|
|
name='deploy',
|
|
label='deploy project',
|
|
default=True
|
|
),
|
|
util.StringParameter(
|
|
name='copyFolder',
|
|
label='Folder with buildet data',
|
|
default="Distro"
|
|
),
|
|
]
|