update coverage_server

This commit is contained in:
clowwindy 2015-02-01 17:15:10 +08:00
parent 3b7755bd5e
commit da65d0a2ee

View file

@ -11,7 +11,7 @@ if __name__ == '__main__':
with open('/tmp/%s-coverage' % project, 'rb') as f: with open('/tmp/%s-coverage' % project, 'rb') as f:
coverage = f.read().strip() coverage = f.read().strip()
n = int(coverage.strip('%')) n = int(coverage.strip('%'))
if n > 80: if n >= 80:
color = 'brightgreen' color = 'brightgreen'
else: else:
color = 'yellow' color = 'yellow'