Skip to content

Commit b1f036c

Browse files
committed
ci: Use Linkage Checker to test Binary Compatibility
1 parent 1d3b94a commit b1f036c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
4141
git clone "https://github.com/googleapis/$repo.git" --depth=1
4242
pushd "$repo"
4343

44-
mvn clean install -T 1C -DskipTests
44+
mvn -B -ntp clean install -T 1C -DskipTests
4545

4646
# For google-cloud-java monorepo, use the parent google-cloud-java version.
4747
# Otherwise, use the first google-cloud-* artifact's version.
@@ -50,11 +50,13 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
5050
else
5151
primary_artifact=$(grep -E "^google-cloud-${repo_name}" "versions.txt" | head -n 1)
5252
fi
53-
echo "${primary_artifact}"
5453
version=$(echo "${primary_artifact}" | tr ':' '\n' | tail -n 1)
55-
echo "${version}"
56-
57-
mvn -B -ntp exec:java -Dexec.mainClass="com.google.cloud.tools.opensource.classpath.LinkageCheckerMain" -Dexec.args="-r --artifacts com.google.cloud:google-cloud-${repo_name}:${version},com.google.protobuf:protobuf-java:${PROTOBUF_RUNTIME_VERSION} -s com.google.cloud:google-cloud-${repo_name}:${version}"
54+
echo "Using ${repo} v${version}"
5855
popd
56+
57+
program_args="-r --artifacts com.google.cloud:google-cloud-${repo_name}:${version},com.google.protobuf:protobuf-java:${PROTOBUF_RUNTIME_VERSION} -s com.google.cloud:google-cloud-${repo_name}:${version}"
58+
echo "Linkage Checker Program Arguments: ${program_args}"
59+
mvn -B -ntp exec:java -Dexec.mainClass="com.google.cloud.tools.opensource.classpath.LinkageCheckerMain" -Dexec.args="${program_args}"
5960
done
61+
popd
6062
popd

0 commit comments

Comments
 (0)