Skip to content

Commit 594e5a8

Browse files
committed
chore: Use exec-linkage-checker maven profile
1 parent edde57d commit 594e5a8

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.kokoro/nightly/downstream-protobuf-binary-compatibility.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515

1616
set -eo pipefail
1717

18+
# There are three Env Vars that this script uses.
19+
# 1. (Required) REPOS_UNDER_TEST: Comma separate list of the repo names
20+
# 2. (Required) PROTOBUF_RUNTIME_VERSION: Protobuf runtime version to test again
21+
# 3. REPOS_INSTALLED_LOCALLY: Flag (if set to "true) will determine if the repo
22+
# needs to be cloned from github and re-installed locally to the m2. If the artifact
23+
# is already installed locally, this saves time as the artifact is not again compiled
24+
# and built.
25+
1826
# Comma-delimited list of repos to test with the local java-shared-dependencies
1927
if [ -z "${REPOS_UNDER_TEST}" ]; then
2028
echo "REPOS_UNDER_TEST must be set to run downstream-protobuf-binary-compatibility.sh"
@@ -106,7 +114,7 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
106114
# The `-s` argument filters the linkage check problems that stem from the artifact
107115
program_args="-r --artifacts ${artifact_list},com.google.protobuf:protobuf-java:${PROTOBUF_RUNTIME_VERSION},com.google.protobuf:protobuf-java-util:${PROTOBUF_RUNTIME_VERSION} -s ${artifact_list}"
108116
echo "Linkage Checker Program Arguments: ${program_args}"
109-
mvn -B -ntp exec:java -Dexec.mainClass="com.google.cloud.tools.opensource.classpath.LinkageCheckerMain" -Dexec.args="${program_args}"
117+
mvn -B -ntp exec:java -Dexec.mainClass="com.google.cloud.tools.opensource.classpath.LinkageCheckerMain" -Dexec.args="${program_args}" -P exec-linkage-checker
110118
fi
111119
echo "done"
112120
done

.kokoro/nightly/downstream-protobuf-source-compatibility.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515

1616
set -eo pipefail
1717

18-
pwd
18+
# There are three Env Vars that this script uses.
19+
# 1. (Required) REPOS_UNDER_TEST: Comma separate list of the repo names
20+
# 2. (Required) PROTOBUF_RUNTIME_VERSION: Protobuf runtime version to test again
21+
# 3. REPOS_INSTALLED_LOCALLY: Flag (if set to "true) will determine if the repo
22+
# needs to be cloned from github and re-installed locally to the m2. If the artifact
23+
# is already installed locally, this saves time as the artifact is not again compiled
24+
# and built.
1925

2026
# Comma-delimited list of repos to test with the local java-shared-dependencies
2127
if [ -z "${REPOS_UNDER_TEST}" ]; then

0 commit comments

Comments
 (0)