Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 67d903e

Browse files
author
Jeff Verkoeyen
committed
Update kokoro bazel runner for v4.
1 parent f55625d commit 67d903e

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.kokoro

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,35 @@ set -e
2020
# Display commands to stderr.
2121
set -x
2222

23-
KOKORO_RUNNER_VERSION="v3.*"
23+
KOKORO_RUNNER_VERSION="v4.*"
24+
25+
POSITIONAL=()
26+
while [[ $# -gt 0 ]]; do
27+
key="$1"
28+
29+
case $key in
30+
-v|--verbose)
31+
VERBOSE_OUTPUT="1"
32+
shift
33+
;;
34+
*)
35+
POSITIONAL+=("$1")
36+
shift
37+
;;
38+
esac
39+
done
40+
set -- "${POSITIONAL[@]}" # restore positional parameters
41+
42+
if [ -n "$KOKORO_BUILD_NUMBER" ]; then
43+
# Always enable verbose output on kokoro runs.
44+
VERBOSE_OUTPUT=1
45+
fi
46+
47+
if [ -n "$VERBOSE_OUTPUT" ]; then
48+
# Display commands to stderr.
49+
set -x
50+
verbosity_args="-v"
51+
fi
2452

2553
if [ ! -d .kokoro-ios-runner ]; then
2654
git clone https://github.com/material-foundation/kokoro-ios-runner.git .kokoro-ios-runner
@@ -33,6 +61,6 @@ TAG=$(git tag --sort=v:refname -l "$KOKORO_RUNNER_VERSION" | tail -n1)
3361
git checkout "$TAG" > /dev/null
3462
popd
3563

36-
./.kokoro-ios-runner/bazel.sh test //:UnitTests 8.1.0
64+
./.kokoro-ios-runner/bazel.sh test //:UnitTests --min-xcode-version 8.1.0 $verbosity_args
3765

3866
echo "Success!"

0 commit comments

Comments
 (0)