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")
示例#2
0
    def createSummary(self, log):
        Compile.createSummary(self, log)

        self.addURL('coverage',
                    'http://www.fraca7.net/TaskCoach-coverage/%s/index.html' % (self.getProperty('buildername')))
示例#3
0
 def createSummary(self, log):
     if not self.ignoreWarnings:
         Compile.createSummary(self, log)
示例#4
0
    def createSummary(self, log):
        Compile.createSummary(self, log)

        self.addURL('Documentation',
                    'http://www.fraca7.net/TaskCoach-doc/%s/index.html' % (self.getProperty('buildername')))