ADD: added new version of protobuf
This commit is contained in:
25
libs/protobuf/kokoro/linux/cpp_distcheck/build.sh
Executable file
25
libs/protobuf/kokoro/linux/cpp_distcheck/build.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests
|
||||
|
||||
set -ex # exit immediately on error
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
./tests.sh cpp_distcheck
|
||||
|
||||
# Run tests under release docker image.
|
||||
DOCKER_IMAGE_NAME=protobuf/protoc_$(sha1sum protoc-artifacts/Dockerfile | cut -f1 -d " ")
|
||||
until docker pull $DOCKER_IMAGE_NAME; do sleep 10; done
|
||||
|
||||
docker run -v $(pwd):/var/local/protobuf --rm $DOCKER_IMAGE_NAME \
|
||||
bash -l /var/local/protobuf/tests.sh cpp || FAILED="true"
|
||||
|
||||
# This directory is owned by root. We need to delete it, because otherwise
|
||||
# Kokoro will attempt to rsync it and fail with a permission error.
|
||||
rm -rf src/core
|
||||
|
||||
if [ "$FAILED" = "true" ]; then
|
||||
exit 1
|
||||
fi
|
||||
5
libs/protobuf/kokoro/linux/cpp_distcheck/continuous.cfg
Normal file
5
libs/protobuf/kokoro/linux/cpp_distcheck/continuous.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_distcheck/build.sh"
|
||||
timeout_mins: 1440
|
||||
5
libs/protobuf/kokoro/linux/cpp_distcheck/presubmit.cfg
Normal file
5
libs/protobuf/kokoro/linux/cpp_distcheck/presubmit.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_distcheck/build.sh"
|
||||
timeout_mins: 1440
|
||||
Reference in New Issue
Block a user