Switch normal macos build to use cmake. (#10092)

pull/10103/head
David L. Jones 3 years ago committed by GitHub
parent dc14b4be42
commit 67f46d2495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 27
      kokoro/macos/cpp/build.sh

@ -2,10 +2,29 @@
#
# Build file to set up and run tests
# Change to repo root
set -eux
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)/../../..
# Prepare worker environment to run tests
source kokoro/macos/prepare_build_macos_rc
#
# Update submodules
#
git submodule update --init --recursive
./tests.sh cpp
#
# Run build
#
kokoro/common/cmake.sh

Loading…
Cancel
Save