Add support for the Bazelisk launcher.

PiperOrigin-RevId: 327771486
This commit is contained in:
Google APIs 2020-08-21 00:59:02 -07:00 committed by Copybara-Service
parent fea9b1a242
commit 6db0bbeb6e
2 changed files with 6 additions and 6 deletions

View File

@ -11,5 +11,5 @@ source .kokoro/setup.sh
#
# Run build and tests
#
${BAZEL} --output_user_root=${BAZEL_ROOT} build --keep_going //...
${BAZEL} --output_user_root=${BAZEL_ROOT} test --flaky_test_attempts=3 --keep_going //...
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} build --keep_going //...
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} test --flaky_test_attempts=3 --keep_going //...

View File

@ -3,17 +3,17 @@
set -e
#
# Install bazel
# Install bazelisk
#
mkdir ${KOKORO_ROOT}/tools
cd ${KOKORO_ROOT}/tools
curl -L https://github.com/bazelbuild/bazel/releases/download/3.0.0/bazel-3.0.0-linux-x86_64 -o bazel
chmod +x bazel
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.6.1/bazelisk-linux-amd64 -o bazelisk
chmod +x bazelisk
mkdir bazel_root
cd -
# gapic-generator-python requires python 3.6+
pyenv global 3.6.1
BAZEL=${KOKORO_ROOT}/tools/bazel
BAZELISK_BIN=${KOKORO_ROOT}/tools/bazelisk
BAZEL_ROOT=${KOKORO_ROOT}/tools/bazel_root