mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-05-07 02:39:36 +00:00
added docs gen
This commit is contained in:
parent
2466058258
commit
003f837287
37
BuildBotLib/Docs.py
Normal file
37
BuildBotLib/Docs.py
Normal file
@ -0,0 +1,37 @@
|
||||
# This Python file uses the following encoding: utf-8
|
||||
|
||||
from BuildBotLib.cmake import CMake
|
||||
from buildbot.plugins import util, steps
|
||||
|
||||
|
||||
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)]
|
||||
|
||||
res += [steps.CopyDirectory(
|
||||
src="docs/html",
|
||||
dest=util.Interpolate('%(prop:copyFolder)s'))]
|
||||
|
||||
return res
|
@ -29,6 +29,7 @@ cmakeWindows = CMake(BaseModule.P_Windows)
|
||||
cmakeAndroid = CMake(BaseModule.P_Android)
|
||||
|
||||
wasm = CMake(BaseModule.P_Wasm)
|
||||
docs = Docs(BaseModule.P_Linux)
|
||||
|
||||
repoGen = QIFRepogen()
|
||||
|
||||
@ -43,6 +44,7 @@ bot.addBuilder("AndroidCMakeBuilder", cmakeAndroid)
|
||||
bot.addBuilder("RepoGen", repoGen)
|
||||
|
||||
bot.addBuilder("Wasm32Builder", wasm)
|
||||
bot.addBuilder("DocsGenerator", docs)
|
||||
|
||||
c = BuildmasterConfig = bot.getMaster()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user