chore: use GCS cache for Bazel builds

PiperOrigin-RevId: 451202879
pull/722/head
Google APIs 3 years ago committed by Copybara-Service
parent 1df6a95449
commit b0c0dabeaa
  1. 6
      .kokoro/build.sh

@ -4,9 +4,11 @@ set -e
cd ${KOKORO_ARTIFACTS_DIR}/github/googleapis
cp .kokoro/.bazelrc $HOME/.bazelrc
CACHE_BUCKET=client-libraries-bazel-cache-github
CACHE_CMDLINE="--remote_cache=https://storage.googleapis.com/${CACHE_BUCKET} --google_default_credentials"
#
# Run build and tests
#
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} build --keep_going //...
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} test --flaky_test_attempts=3 --keep_going //...
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} build ${CACHE_CMDLINE} --keep_going //...
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} test ${CACHE_CMDLINE} --flaky_test_attempts=3 --keep_going //...

Loading…
Cancel
Save