Commit 1c24c79a authored by Leandro Camargo's avatar Leandro Camargo

Be more lenient on build coverage value updates and fix specs

parent 441a9bee
...@@ -276,7 +276,7 @@ module Ci ...@@ -276,7 +276,7 @@ module Ci
def update_coverage def update_coverage
coverage = extract_coverage(trace, coverage_regex) coverage = extract_coverage(trace, coverage_regex)
update_attributes(coverage: coverage) if coverage.is_a?(Numeric) update_attributes(coverage: coverage) if coverage.present?
end end
def extract_coverage(text, regex) def extract_coverage(text, regex)
......
...@@ -222,6 +222,7 @@ CommitStatus: ...@@ -222,6 +222,7 @@ CommitStatus:
- queued_at - queued_at
- token - token
- lock_version - lock_version
- coverage_regex
Ci::Variable: Ci::Variable:
- id - id
- project_id - project_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment