fix coverage rake task

pull/1040/head
Gabriel Burnworth 2018-11-06 10:52:28 -08:00 committed by GitHub
parent 98cbeb6b06
commit 1ae64500e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -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]}"