aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Re-add build message pointing to code coverage report.
Date Thu, 16 Oct 2014 23:58:10 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master b931a5c7b -> cdde284ae


Re-add build message pointing to code coverage report.

Reviewed at https://reviews.apache.org/r/26787/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/cdde284a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/cdde284a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/cdde284a

Branch: refs/heads/master
Commit: cdde284ae8555ce62c0931e39fa21a94c1e863fd
Parents: b931a5c
Author: Bill Farner <wfarner@apache.org>
Authored: Thu Oct 16 16:57:31 2014 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Thu Oct 16 16:57:31 2014 -0700

----------------------------------------------------------------------
 build.gradle | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/cdde284a/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index e436aae..26925df 100644
--- a/build.gradle
+++ b/build.gradle
@@ -502,10 +502,14 @@ jacocoTestReport {
 test.finalizedBy jacocoTestReport
 
 task analyzeReport(type: CoverageReportCheck) {
-  coverageReportFile = "$buildDir/reports/jacoco/test/jacocoTestReport.xml"
+  def reportPath = "$buildDir/reports/jacoco/test"
+  coverageReportFile = "$reportPath/jacocoTestReport.xml"
   minInstructionCoverage = 0.87
   minBranchCoverage = 0.82
   legacyClassesWithoutCoverage = file('config/legacy_untested_classes.txt').readLines()
+  doLast {
+    println "Coverage report generated: file://$reportPath/html/index.html"
+  }
 }
 jacocoTestReport.finalizedBy analyzeReport
 


Mime
View raw message