fix coverage rake task
parent
98cbeb6b06
commit
1ae64500e7
|
@ -48,13 +48,12 @@ namespace :coverage do
|
|||
end
|
||||
|
||||
if CURRENT_COMMIT == latest_commit_staging
|
||||
diff = 0
|
||||
pass = true
|
||||
else
|
||||
diff = (build_percent - staging_percent)
|
||||
pass = (diff > -THRESHOLD)
|
||||
staging_percent = build_percent
|
||||
end
|
||||
|
||||
diff = (build_percent - staging_percent)
|
||||
pass = (diff > -THRESHOLD)
|
||||
|
||||
puts "=" * 37
|
||||
puts "COVERAGE RESULTS"
|
||||
puts "This build: #{build_percent.round(8)}% #{CURRENT_COMMIT[0,7]}"
|
||||
|
|
Loading…
Reference in New Issue