mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: stop wasting a cycle for coverage check
Build jobs that return a -2 PID are considered immediately done and the next job is started without waiting for a cron cycle.
This commit is contained in:
parent
63b997a4ed
commit
1d46bf9ff5
@ -1015,7 +1015,7 @@ class runbot_build(osv.osv):
|
||||
|
||||
def _job_21_coverage(self, cr, uid, build, lock_path, log_path):
|
||||
if not build.branch_id.coverage:
|
||||
return
|
||||
return -2
|
||||
cov_path = build._path('coverage')
|
||||
mkdirs([cov_path])
|
||||
cmd = ["coverage", "html", "-d", cov_path, "--ignore-errors"]
|
||||
|
Loading…
Reference in New Issue
Block a user