Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (19 sloc) 449 Bytes
lambda { |stdout,stderr,status|
output = stdout + stderr
containers_pattern = Regexp.new('^\[\s+(\d+) containers failed\s+\]')
if match = containers_pattern.match(output)
if match[1] != '0'
return :amber
end
end
tests_pattern = Regexp.new('^\[\s+(\d+) tests failed\s+\]')
if match = tests_pattern.match(output)
if match[1] == '0'
return :green
else
return :red
end
else
return :amber
end
}
You can’t perform that action at this time.