ADD: added new version of protobuf
This commit is contained in:
@@ -4,24 +4,16 @@
|
||||
# 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
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# 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
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
# The image of the Dockerfile sha1 is fetched from the organization
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/java_stretch
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="java_linkage_monitor"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
# 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"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# 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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,12 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# 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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user