diff options
author | Vincent Ambo <mail@tazj.in> | 2021-03-24T00·14+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-03-25T18·37+0000 |
commit | d01d6bb63db9da000dd1b3c8491a6c0d43877c29 (patch) | |
tree | 8425c010b39c62e2d389ca1bb9cf544a660e9f58 /third_party/cpp/googleapis/ci/kokoro/docker/build-in-docker-cmake.sh | |
parent | b59f712535453ac971239ddec28196a1a071ae42 (diff) |
chore(3p): Clean up unused third-party packages r/2328
Removes the following currently unused packages: * terraform-gcp * cpp.googleapis * nixery Change-Id: I02c38f0e6d23b1b9008706ca5a3b9db51cc9b689 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2650 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party/cpp/googleapis/ci/kokoro/docker/build-in-docker-cmake.sh')
-rwxr-xr-x | third_party/cpp/googleapis/ci/kokoro/docker/build-in-docker-cmake.sh | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/third_party/cpp/googleapis/ci/kokoro/docker/build-in-docker-cmake.sh b/third_party/cpp/googleapis/ci/kokoro/docker/build-in-docker-cmake.sh deleted file mode 100755 index 4dd9e7eb3dff..000000000000 --- a/third_party/cpp/googleapis/ci/kokoro/docker/build-in-docker-cmake.sh +++ /dev/null @@ -1,112 +0,0 @@ -#!/usr/bin/env bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eu - -if [[ $# != 2 ]]; then - echo "Usage: $(basename "$0") <source-directory> <binary-directory>" - exit 1 -fi - -readonly SOURCE_DIR="$1" -readonly BINARY_DIR="$2" - -# This script is supposed to run inside a Docker container, see -# ci/kokoro/cmake/installed-dependencies/build.sh for the expected setup. The -# /v directory is a volume pointing to a (clean-ish) checkout of the project: -if [[ -z "${PROJECT_ROOT+x}" ]]; then - readonly PROJECT_ROOT="/v" -fi -source "${PROJECT_ROOT}/ci/colors.sh" - -echo -echo "${COLOR_YELLOW}Starting docker build $(date) with $(nproc) cores${COLOR_RESET}" -echo - -echo "================================================================" -echo "Verify formatting $(date)" -(cd "${PROJECT_ROOT}" ; ./ci/check-style.sh) -echo "================================================================" - -echo "================================================================" -echo "Compiling on $(date)" -echo "================================================================" -cd "${PROJECT_ROOT}" -cmake_flags=() -if [[ "${CLANG_TIDY:-}" = "yes" ]]; then - cmake_flags+=("-DGOOGLE_CLOUD_CPP_CLANG_TIDY=yes") -fi -if [[ "${GOOGLE_CLOUD_CPP_CXX_STANDARD:-}" != "" ]]; then - cmake_flags+=( - "-DGOOGLE_CLOUD_CPP_CXX_STANDARD=${GOOGLE_CLOUD_CPP_CXX_STANDARD}") -fi - -if [[ "${CODE_COVERAGE:-}" == "yes" ]]; then - cmake_flags+=( - "-DCMAKE_BUILD_TYPE=Coverage") -fi - -if [[ "${USE_NINJA:-}" == "yes" ]]; then - cmake_flags+=( "-GNinja" ) -fi - -# Avoid unbound variable error with older bash -if [[ "${#cmake_flags[@]}" == 0 ]]; then - cmake "-H${SOURCE_DIR}" "-B${BINARY_DIR}" -else - cmake "-H${SOURCE_DIR}" "-B${BINARY_DIR}" "${cmake_flags[@]}" -fi -cmake --build "${BINARY_DIR}" -- -j "$(nproc)" - -# When user a super-build the tests are hidden in a subdirectory. We can tell -# that ${BINARY_DIR} does not have the tests by checking for this file: -if [[ -r "${BINARY_DIR}/CTestTestfile.cmake" ]]; then - echo "================================================================" - # It is Okay to skip the tests in this case because the super build - # automatically runs them. - echo "Running the unit tests $(date)" - env -C "${BINARY_DIR}" ctest \ - -LE integration-tests \ - --output-on-failure -j "$(nproc)" - echo "================================================================" -fi - -if [[ "${GENERATE_DOCS:-}" = "yes" ]]; then - echo "================================================================" - echo "Validate Doxygen documentation $(date)" - cmake --build "${BINARY_DIR}" --target doxygen-docs - echo "================================================================" -fi - -if [[ ${RUN_INTEGRATION_TESTS} == "yes" ]]; then - echo "================================================================" - echo "Running the integration tests $(date)" - echo "================================================================" - # shellcheck disable=SC1091 - source /c/spanner-integration-tests-config.sh - export GOOGLE_APPLICATION_CREDENTIALS=/c/spanner-credentials.json - - # Run the integration tests too. - env -C "${BINARY_DIR}" ctest \ - -L integration-tests \ - --output-on-failure - echo "================================================================" -fi - -echo "================================================================" -echo "Build finished at $(date)" -echo "================================================================" - -exit 0 |