2018-01-25 12:55:27 -05:00
|
|
|
# These options are enabled when running on CI
|
|
|
|
# We do this by copying this file to /etc/bazel.bazelrc at the start of the build.
|
|
|
|
# See remote cache documentation in /docs/BAZEL.md
|
|
|
|
|
|
|
|
# Don't be spammy in the logs
|
2018-07-13 20:27:36 -04:00
|
|
|
# TODO(gmagolan): Hide progress again once build performance improves
|
|
|
|
# Presently, CircleCI can timeout during bazel test ... with the following
|
|
|
|
# error: Too long with no output (exceeded 10m0s)
|
|
|
|
# build --noshow_progress
|
2018-01-25 12:55:27 -05:00
|
|
|
|
|
|
|
# Don't run manual tests
|
|
|
|
test --test_tag_filters=-manual
|
|
|
|
|
2018-04-02 19:34:48 -04:00
|
|
|
# Print all the options that apply to the build.
|
|
|
|
# This helps us diagnose which options override others
|
|
|
|
# (e.g. /etc/bazel.bazelrc vs. tools/bazel.rc)
|
|
|
|
build --announce_rc
|
|
|
|
|
|
|
|
# Create dist/bin symlink to $(bazel info bazel-bin)
|
|
|
|
# We use this when uploading artifacts after the build finishes
|
|
|
|
build --symlink_prefix=dist/
|
|
|
|
|
2018-01-25 12:55:27 -05:00
|
|
|
# Workaround https://github.com/bazelbuild/bazel/issues/3645
|
|
|
|
# Bazel doesn't calculate the memory ceiling correctly when running under Docker.
|
2018-03-07 20:26:03 -05:00
|
|
|
# Limit Bazel to consuming resources that fit in CircleCI "xlarge" class
|
2018-01-25 12:55:27 -05:00
|
|
|
# https://circleci.com/docs/2.0/configuration-reference/#resource_class
|
2018-03-07 20:26:03 -05:00
|
|
|
build --local_resources=14336,8.0,1.0
|
2018-01-25 12:55:27 -05:00
|
|
|
|
|
|
|
# Retry in the event of flakes, eg. https://circleci.com/gh/angular/angular/31309
|
|
|
|
test --flaky_test_attempts=2
|
2018-08-02 00:02:36 -04:00
|
|
|
|
|
|
|
# More details on failures
|
|
|
|
build --verbose_failures=true
|