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
def update_coverage
coverage = extract_coverage(trace, coverage_regex)
update_attributes(coverage: coverage) if coverage.is_a?(Numeric)
update_attributes(coverage: coverage) if coverage.present?
end
def extract_coverage(text, regex)
......
......@@ -222,6 +222,7 @@ CommitStatus:
- queued_at
- token
- lock_version
- coverage_regex
Ci::Variable:
- 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