aboutsummaryrefslogtreecommitdiff
path: root/kokoro
diff options
context:
space:
mode:
authorambrosin <ambrosin@google.com>2022-12-22 02:03:40 -0800
committerCopybara-Service <copybara-worker@google.com>2022-12-22 02:05:21 -0800
commit6e36a869797f84e241ecfa0947f716abe576d8ca (patch)
tree4baf8c10ab7409f3767815d366256cb9d5f5ab48 /kokoro
parentfa125acc2788acc66b1cf16a20b26ea80827db8a (diff)
downloadtink-6e36a869797f84e241ecfa0947f716abe576d8ca.tar.gz
Use the correct Bazel version when installing Tink using pip in comprehensive test
PiperOrigin-RevId: 497112569
Diffstat (limited to 'kokoro')
-rwxr-xr-xkokoro/run_tests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh
index ce4d000a0..19623596f 100755
--- a/kokoro/run_tests.sh
+++ b/kokoro/run_tests.sh
@@ -156,6 +156,10 @@ run_macos_tests() {
}
install_tink_via_pip() {
+ if [[ -n "${KOKORO_ROOT}" ]]; then
+ use_bazel.sh "$(cat python/.bazelversion)"
+ fi
+
local -a PIP_FLAGS
if [[ "${PLATFORM}" == 'darwin' ]]; then
PIP_FLAGS=( --user )
@@ -213,6 +217,9 @@ install_temp_protoc() {
# None
#######################################
test_maven_packages() {
+ if [[ -n "${KOKORO_ROOT}" ]]; then
+ use_bazel.sh "$(cat java_src/.bazelversion)"
+ fi
# Only test in the Ubuntu environment.
if [[ "${PLATFORM}" != "linux" ]]; then
return