2022-01-13 07:44:01 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -veux -o pipefail
|
|
|
|
|
|
|
|
if [[ -f /VERSION ]]; then
|
|
|
|
cat /VERSION
|
|
|
|
fi
|
|
|
|
|
|
|
|
readonly GRPC_JAVA_DIR="$(cd "$(dirname "$0")"/../.. && pwd)"
|
|
|
|
|
2024-02-10 02:45:33 +08:00
|
|
|
# We had problems with random tests timing out because it took seconds to do
|
|
|
|
# trivial (ns) operations. The Kokoro Mac machines have 2 cores with 4 logical
|
|
|
|
# threads, so Gradle should be using 4 workers by default.
|
|
|
|
export GRADLE_FLAGS="${GRADLE_FLAGS:-} --max-workers=2"
|
|
|
|
|
2022-01-13 07:44:01 +08:00
|
|
|
. "$GRPC_JAVA_DIR"/buildscripts/kokoro/kokoro.sh
|
|
|
|
trap spongify_logs EXIT
|
|
|
|
|
|
|
|
"$GRPC_JAVA_DIR"/buildscripts/kokoro/unix.sh
|