checkin coveralls command after excluding tests and deps

This commit is contained in:
Dan Miller 2016-12-02 23:27:11 -08:00
parent 952f56a82a
commit bbf3d41ca8

View file

@ -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())