-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JacocoRunner script: update for Bazel 6.0+ (#1516)
* JacocoRunner script: update for Bazel 6.0+ Added a parameter to specify the Bazel major version (to have a single script for Bazel 5 and 6). Manually tested on a repo with both Bazel versions. Had to add a new patch file for Bazel 6. Added new Bazel branch with the Jacoco interface implementation, updated for Bazel 6.3.2. Updated manual test_coverage_with_local_jacocorunner to run the script with Bazel 6 provided as a parameter (it was failing after the repo's upgrade to Bazel 6). * JacocoRunner script: renaming scripts to make Bazel 6.0 version the default The script for Bazel 5/6 should be the default one. Leaving the version for Bazel 4 as an alternative with a version suffix in its filename.
- Loading branch information
1 parent
6dd98a1
commit d94ee55
Showing
6 changed files
with
133 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
scripts/build_jacocorunner/0001-Build-Jacoco-for-Bazel-6.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 712d62a8238f3a7fe51e1cf4cc2520b5f249e1d3 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Gergely=20F=C3=A1bi=C3=A1n?= <gergo.fb@gmail.com> | ||
Date: Fri, 18 Dec 2020 11:43:59 +0100 | ||
Subject: [PATCH] Build Jacoco for Bazel | ||
|
||
--- | ||
org.jacoco.build/pom.xml | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/org.jacoco.build/pom.xml b/org.jacoco.build/pom.xml | ||
index 8aae1543..067cc6a7 100644 | ||
--- a/org.jacoco.build/pom.xml | ||
+++ b/org.jacoco.build/pom.xml | ||
@@ -706,7 +706,7 @@ | ||
project.getProperties().setProperty("build.date", buildDate); | ||
|
||
buildNumber = project.getProperties().get("buildNumber"); | ||
- pkgName = buildNumber.substring(buildNumber.length() - 7, buildNumber.length()); | ||
+ pkgName = "43a39aa"; | ||
project.getProperties().setProperty("jacoco.runtime.package.name", "org.jacoco.agent.rt.internal_" + pkgName); | ||
|
||
void loadLicense(String libraryId) { | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters