Merge commit '36bca61764984ff5395653cf8377ec5daa71b709' as 'libs/protobuf'
This commit is contained in:
29
libs/protobuf/kokoro/macos-next/cpp/build.sh
Executable file
29
libs/protobuf/kokoro/macos-next/cpp/build.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash -eux
|
||||
#
|
||||
# Build file to set up and run tests
|
||||
|
||||
set -o pipefail
|
||||
|
||||
if [[ -h /tmpfs ]] && [[ ${PWD} == /tmpfs/src ]]; then
|
||||
# Workaround for internal Kokoro bug: b/227401944
|
||||
cd /Volumes/BuildData/tmpfs/src
|
||||
fi
|
||||
|
||||
# Default environment variables used by cmake build:
|
||||
: ${CMAKE_CONFIG_TYPE:=Debug}
|
||||
export CMAKE_CONFIG_TYPE
|
||||
: ${CTEST_PARALLEL_LEVEL:=4}
|
||||
export CTEST_PARALLEL_LEVEL
|
||||
|
||||
# Run from the project root directory.
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
#
|
||||
# Update submodules
|
||||
#
|
||||
git submodule update --init --recursive
|
||||
|
||||
#
|
||||
# Run build
|
||||
#
|
||||
kokoro/common/cmake.sh
|
||||
Reference in New Issue
Block a user