当前位置: 首页>>代码示例>>Python>>正文


Python Compile.createSummary方法代码示例

本文整理汇总了Python中buildbot.steps.shell.Compile.createSummary方法的典型用法代码示例。如果您正苦于以下问题:Python Compile.createSummary方法的具体用法?Python Compile.createSummary怎么用?Python Compile.createSummary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在buildbot.steps.shell.Compile的用法示例。


在下文中一共展示了Compile.createSummary方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: createSummary

# 需要导入模块: from buildbot.steps.shell import Compile [as 别名]
# 或者: from buildbot.steps.shell.Compile import createSummary [as 别名]
    def createSummary(self, log):
        Compile.createSummary(self, log)

        if not self.warningPattern:
            return

        wre = self.warningPattern
        if isinstance(wre, str):
            import re

            wre = re.compile(wre)

        interested = True
        if self.partialwarningStart:
            interested = False
        warnings = []
        for line in log.getText().split("\n"):
            if line == self.partialwarningStart:
                interested = True
            if line == self.partialwarningEnd:
                interested = False
            if interested and wre.match(line):
                warnings.append(line)

        if warnings:
            self.addCompleteLog("partialwarnings", "\n".join(warnings) + "\n")

        if self.partialwarningProperty is not None:
            old_count = self.getProperty(self.partialwarningProperty, 0)
            self.setProperty(self.partialwarningProperty, old_count + len(warnings), "PartialWarningsCompile")
        else:
            old_count = self.getProperty("partial-warnings-count", 0)
            self.setProperty("partial-warnings-count", old_count + len(warnings), "PartialWarningsCompile")
开发者ID:wanders,项目名称:buildbot-extras,代码行数:35,代码来源:partialwarnings.py

示例2: createSummary

# 需要导入模块: from buildbot.steps.shell import Compile [as 别名]
# 或者: from buildbot.steps.shell.Compile import createSummary [as 别名]
    def createSummary(self, log):
        Compile.createSummary(self, log)

        self.addURL('coverage',
                    'http://www.fraca7.net/TaskCoach-coverage/%s/index.html' % (self.getProperty('buildername')))
开发者ID:MahadJamal,项目名称:Task-Coach-Evolution,代码行数:7,代码来源:tcbuild.py


注:本文中的buildbot.steps.shell.Compile.createSummary方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。