diff --git a/buildbot/master/commands/coveralls.py b/buildbot/master/commands/coveralls.py new file mode 100644 index 0000000..c17f289 --- /dev/null +++ b/buildbot/master/commands/coveralls.py @@ -0,0 +1,11 @@ +import re +from buildbot.steps.shell import ShellCommand + +class CoverallsCommand(ShellCommand): + command = ["coveralls", "-E", "'/usr/.*'", "-E", "'./CMakeFiles/.*'", "-e", "deps", "-e", "tests"] + + def createSummary(self, log): + match = re.search(r"https://coveralls.io/jobs/([0-9]+)", log.getText(), re.MULTILINE) + if match: + self.addURL("coverage", match.group()) +