-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
66 lines (49 loc) · 2.18 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
###############################
# Settings for running builds #
###############################
# Tell bazel to store all symlinks it creates .bazel/
build --symlink_prefix=.bazel/
# Cache action outputs on local disk so they persist across output_base and bazel
# shutdown (helps with cache thrashing when changing branches).
build --disk_cache=~/.cache/bazel-disk-cache
# show output files created by builds requested more than one target.
# Helps locate build outputs.
build --show_result=20
# Turn off legacy external runfiles. Bazel will remove these soon.
build --nolegacy_external_runfiles
# Turn on --incompatible_strict_action_env. Ensures that bazel cache is not
# invalidated when `yarn bazel` is run.
build --incompatible_strict_action_env
run --incompatible_strict_action_env
# Avoid using random headers on a machine that can interfere with Bazel's C++
# toolchains
build --strict_system_includes
# Don't automatically create __init__.py files. Developers must place these
# files into the source tree themselves.
build --incompatible_default_to_explicit_init_py
# Prevent concurrent file changes from poisoning build cache
build --experimental_guard_against_concurrent_changes
# WORKSPACE status commands
build --workspace_status_command=bazel/scripts/workspace_status_command.sh
run --workspace_status_command=bazel/scripts/workspace_status_command.sh
##############################
# Settings for running tests #
##############################
# complain about test size, encourage size="small" in test rules
test --test_verbose_timeout_warnings
# show test error outputs
build --test_output=errors
# show the test summary. Show detailed information about failed tests
build --test_summary=detailed
# inherit env vars to test
build --action_env=HOME
test --action_env=HOME
############################
# Settings for local users #
############################
# Try to import local user settings. The .bazelrc.user file is in the
# .gitignore, so it will not be checked into source repo. This configuration
# needs to be last. We use .bazelrc.user so that the file appears next to the
# .bazelrc when listing directories.
try-import %workspace%/.bazelrc.user
# DO NOT ADD ANYTHING ELSE AFTER THIS!