This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,35 @@ set -e
20
20
# Display commands to stderr.
21
21
set -x
22
22
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
24
52
25
53
if [ ! -d .kokoro-ios-runner ]; then
26
54
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)
33
61
git checkout " $TAG " > /dev/null
34
62
popd
35
63
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
37
65
38
66
echo " Success!"
You can’t perform that action at this time.
0 commit comments