Merge commit '36bca61764984ff5395653cf8377ec5daa71b709' as 'libs/protobuf'
This commit is contained in:
30
libs/protobuf/kokoro/linux/cmake_install/build.sh
Executable file
30
libs/protobuf/kokoro/linux/cmake_install/build.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to build, install, and test using CMake.
|
||||
|
||||
set -eux
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
GIT_REPO_ROOT=`pwd`
|
||||
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/cmake/linux@sha256:79e6ed9d7f3f8e56167a3309a521e5b7e6a212bfb19855c65ee1cbb6f9099671
|
||||
|
||||
# Update git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
tmpfile=$(mktemp -u)
|
||||
|
||||
docker run \
|
||||
--cidfile $tmpfile \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
"/install.sh && /test.sh \
|
||||
-Dprotobuf_REMOVE_INSTALLED_HEADERS=ON \
|
||||
-Dprotobuf_BUILD_PROTOBUF_BINARIES=OFF \
|
||||
-Dprotobuf_BUILD_CONFORMANCE=ON"
|
||||
|
||||
|
||||
# Save logs for Kokoro
|
||||
docker cp \
|
||||
`cat $tmpfile`:/workspace/logs $KOKORO_ARTIFACTS_DIR
|
||||
11
libs/protobuf/kokoro/linux/cmake_install/common.cfg
Normal file
11
libs/protobuf/kokoro/linux/cmake_install/common.cfg
Normal file
@@ -0,0 +1,11 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cmake_install/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
1
libs/protobuf/kokoro/linux/cmake_install/continuous.cfg
Normal file
1
libs/protobuf/kokoro/linux/cmake_install/continuous.cfg
Normal file
@@ -0,0 +1 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
1
libs/protobuf/kokoro/linux/cmake_install/presubmit.cfg
Normal file
1
libs/protobuf/kokoro/linux/cmake_install/presubmit.cfg
Normal file
@@ -0,0 +1 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
Reference in New Issue
Block a user