Add support for the Bazelisk launcher.
PiperOrigin-RevId: 327771486
This commit is contained in:
parent
fea9b1a242
commit
6db0bbeb6e
|
|
@ -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 //...
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue