本文整理匯總了Python中buildbot.steps.shell.Compile.addSuppression方法的典型用法代碼示例。如果您正苦於以下問題:Python Compile.addSuppression方法的具體用法?Python Compile.addSuppression怎麽用?Python Compile.addSuppression使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類buildbot.steps.shell.Compile
的用法示例。
在下文中一共展示了Compile.addSuppression方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: compile
# 需要導入模塊: from buildbot.steps.shell import Compile [as 別名]
# 或者: from buildbot.steps.shell.Compile import addSuppression [as 別名]
def compile(self, builddir='build', config='release', target=None, useClean=False, desc=None, doStepIf=True,
warningPattern=None, suppressionFile=None, suppressions=None,
runParallel=True, **kwargs):
@renderer
def compileCommand(props):
command = '%s cmake --build . --config %s' % (self.envCmd, config)
if not target is None:
command += ' --target %s' % target
if useClean:
command += ' --clean-first'
if runParallel:
cpus = props.getProperty('CPUs')
if not cpus:
cpus = 1
if self.compiler and self.compiler.startswith('vc'):
command += ' -- /maxcpucount:%s /consoleloggerparameters:NoSummary' % cpus
else:
command += ' -- -j%s' % cpus
return command
if desc is None:
desc = 'compile %s' % config
if warningPattern is None:
warningPattern = self.r_warning_pattern
step = \
Compile(command=compileCommand, workdir=builddir, env=self.env,
name=desc, descriptionDone=desc, description=desc, doStepIf=doStepIf,
warningPattern=warningPattern,
warnOnWarnings=True, haltOnFailure=True,
suppressionFile=suppressionFile, **kwargs)
if suppressions or self.suppressions:
step.addSuppression((suppressions or []) + (self.suppressions or []))
yield self.processStep(step)