Merge commit '36bca61764984ff5395653cf8377ec5daa71b709' as 'libs/protobuf'
This commit is contained in:
27
libs/protobuf/kokoro/linux/java_linkage_monitor/build.sh
Executable file
27
libs/protobuf/kokoro/linux/java_linkage_monitor/build.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image.
|
||||
|
||||
use_bazel.sh 4.2.2
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
bazel build //:protoc
|
||||
|
||||
# The java build setup expects protoc in the root directory.
|
||||
cp bazel-bin/protoc .
|
||||
|
||||
cd java
|
||||
# Installs the snapshot version locally
|
||||
mvn -e -B -Dhttps.protocols=TLSv1.2 install -Dmaven.test.skip=true
|
||||
|
||||
# Linkage Monitor uses the snapshot versions installed in $HOME/.m2 to verify compatibility
|
||||
JAR=linkage-monitor-latest-all-deps.jar
|
||||
curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}"
|
||||
# Fails if there's new linkage errors compared with baseline
|
||||
java -jar $JAR com.google.cloud:libraries-bom
|
||||
12
libs/protobuf/kokoro/linux/java_linkage_monitor/common.cfg
Normal file
12
libs/protobuf/kokoro/linux/java_linkage_monitor/common.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
# Config file for running Linkage Monitor in Kokoro
|
||||
# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_linkage_monitor/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -0,0 +1 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
Reference in New Issue
Block a user