Skip to content
Snippets Groups Projects
Commit 302d65ea authored by Thai Duong's avatar Thai Duong
Browse files

Measuring time spent during presubmit tests.

Change-Id: I2044360f158cc17fe8bd8f22c015e69dbe971378
ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com>
GitOrigin-RevId: 64e6515028ad5ef44b02548b4b82c9d5d81e2829
parent 8a37e70e
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@ git_repository(
#-----------------------------------------------------------------------------
# proto_library rules implicitly depend on @com_google_protobuf//:protoc,
# which is the proto-compiler.
# This statement defines the @com_google_protobuf repo.
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-3.4.0",
......
......@@ -27,12 +27,16 @@ rm -f ~/.bazelrc
# Build
cd github/tink/
time bazel fetch ...
# bazel sandbox doesn't work with Kokoro's MacOS image, see b/38040081.
bazel build --strategy=CppCompile=standalone --strategy=Turbine=standalone \
time bazel build --strategy=CppCompile=standalone --strategy=Turbine=standalone \
--strategy=ProtoCompile=standalone --strategy=GenProto=standalone \
--strategy=GenRule=standalone --strategy=GenProtoDescriptorSet=standalone \
--sandbox_tmpfs_path=$TMP -- //... -//objc/... -//tools/...
--proto_toolchain_for_cc=@com_google_protobuf//:cc_toolchain \
--proto_toolchain_for_java=@com_google_protobuf//:java_toolchain \
--sandbox_tmpfs_path=$TMP -- //... -//objc/...
# Run all tests, except iOS.
bazel test --strategy=TestRunner=standalone --test_output=all -- //... \
time bazel test --strategy=TestRunner=standalone --test_output=all -- //... \
-//objc/...
......@@ -58,8 +58,10 @@ ${BAZEL_BIN} version
echo "using java binary: " `which java`
java -version
time ${BAZEL_BIN} fetch ...
# Build all the iOS targets.
${BAZEL_BIN} build \
time ${BAZEL_BIN} build \
$DISABLE_SANDBOX \
--compilation_mode=dbg \
--dynamic_mode=off \
......@@ -70,14 +72,16 @@ ${BAZEL_BIN} build \
--ios_sdk_version="${IOS_SDK_VERSION}" \
--xcode_version="${XCODE_VERSION}" \
--verbose_failures \
//objc/... || \
( ls -l ; df -h / ; exit 1 )
//objc/...
echo "bazel obj-c passed"
# Test all targets except iOS.
# bazel sandbox doesn't work with Kokoro's MacOS image, see b/38040081.
${BAZEL_BIN} test --sandbox_tmpfs_path=$TMP $DISABLE_SANDBOX -- //... \
-//objc/... || ( ls -l ; df -h / ; exit 1 )
time ${BAZEL_BIN} build --sandbox_tmpfs_path=$TMP $DISABLE_SANDBOX -- //... \
-//objc/...
time ${BAZEL_BIN} test --sandbox_tmpfs_path=$TMP $DISABLE_SANDBOX -- //... \
-//objc/...
echo "bazel non objc-c passed"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment