-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bazelrc
138 lines (127 loc) · 6.4 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
###############################
# Common settings
# These settings will apply for all configs
###############################
# Add a workspace status command to be available for targets that support stamping
# See: https://docs.bazel.build/versions/master/user-manual.html#workspace_status
build --workspace_status_command=./tools/workspace_status.sh
test --workspace_status_command=./tools/workspace_status.sh
run --workspace_status_command=./tools/workspace_status.sh
# Show timestamps in output
build --show_timestamps
test --show_timestamps
query --show_timestamps
# Persistent worker for Scala
build --strategy=Scalac=worker
build --worker_sandboxing
test --strategy=Scalac=worker
test --worker_sandboxing
# Strict deps for java deps
run --experimental_strict_java_deps=error
test --experimental_strict_java_deps=error
build --experimental_strict_java_deps=error
# Set .Net toolchain
build --host_platform @io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_3.1.100
build --platforms @io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_3.1.100
test --host_platform @io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_3.1.100
test --platforms @io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_3.1.100
# Turn on --incompatible_strict_action_env which was on by default
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow
# https://github.com/bazelbuild/bazel/issues/7026 for more details.
# This flag is needed to so that the bazel cache is not invalidated
# when running bazel via `yarn bazel`.
# See https://github.com/angular/angular/issues/27514.
build --incompatible_strict_action_env
test --incompatible_strict_action_env
run --incompatible_strict_action_env
# Only show output from errors in test runs
test --test_output=errors
# Used by rust_analyzer
build --repo_env=RULES_RUST_TOOLCHAIN_INCLUDE_RUSTC_SRCS=true
test --repo_env=RULES_RUST_TOOLCHAIN_INCLUDE_RUSTC_SRCS=true
# Enable disk cache for local builds
# This makes caching quicker when switching branches
# See: https://docs.bazel.build/versions/master/remote-caching.html#disk-cache
build --disk_cache=~/.cache/bazel-disk-cache
test --disk_cache=~/.cache/bazel-disk-cache
query --disk_cache=~/.cache/bazel-disk-cache
build --repository_cache=~/.cache/bazel-repository-cache
test --repository_cache=~/.cache/bazel-repository-cache
query --repository_cache=~/.cache/bazel-repository-cache
# Remote cache/execution via BuildBuddy
# You will also have to add these options to your .bazelrc.user file
# build --remote_header=x-buildbuddy-api-key=<you-api-key-here>
# test --remote_header=x-buildbuddy-api-key=<you-api-key-here>
# query --remote_header=x-buildbuddy-api-key=<you-api-key-here>
# aquery --remote_header=x-buildbuddy-api-key=<you-api-key-here>
# cquery --remote_header=x-buildbuddy-api-key=<you-api-key-here>
# run --remote_header=x-buildbuddy-api-key=<you-api-key-here>
build --bes_results_url=https://app.buildbuddy.io/invocation/
build --bes_backend=grpcs://cloud.buildbuddy.io
build --remote_cache=grpcs://cloud.buildbuddy.io
build --remote_timeout=3600
#build --experimental_remote_downloader=grpcs://cloud.buildbuddy.io
test --bes_results_url=https://app.buildbuddy.io/invocation/
test --bes_backend=grpcs://cloud.buildbuddy.io
test --remote_cache=grpcs://cloud.buildbuddy.io
test --remote_timeout=3600
#test --experimental_remote_downloader=grpcs://cloud.buildbuddy.io
query --bes_results_url=https://app.buildbuddy.io/invocation/
query --bes_backend=grpcs://cloud.buildbuddy.io
query --remote_cache=grpcs://cloud.buildbuddy.io
query --remote_timeout=3600
query --experimental_remote_downloader=grpcs://cloud.buildbuddy.io
aquery --bes_results_url=https://app.buildbuddy.io/invocation/
aquery --bes_backend=grpcs://cloud.buildbuddy.io
aquery --remote_cache=grpcs://cloud.buildbuddy.io
aquery --remote_timeout=3600
#aquery --experimental_remote_downloader=grpcs://cloud.buildbuddy.io
cquery --bes_results_url=https://app.buildbuddy.io/invocation/
cquery --bes_backend=grpcs://cloud.buildbuddy.io
cquery --remote_cache=grpcs://cloud.buildbuddy.io
cquery --remote_timeout=3600
#cquery --experimental_remote_downloader=grpcs://cloud.buildbuddy.io
run --bes_results_url=https://app.buildbuddy.io/invocation/
run --bes_backend=grpcs://cloud.buildbuddy.io
run --remote_cache=grpcs://cloud.buildbuddy.io
run --remote_timeout=3600
#run --experimental_remote_downloader=grpcs://cloud.buildbuddy.io
# Set up remote execution config via BuildBuddy
build:remote --remote_executor=grpcs://cloud.buildbuddy.io
build:remote --host_platform=@buildbuddy_toolchain//:platform
build:remote --platforms=//:buildbuddy_platform
build:remote --extra_execution_platforms=//:buildbuddy_platform
build:remote --crosstool_top=@buildbuddy_toolchain//:toolchain
build:remote --extra_toolchains=@buildbuddy_toolchain//:cc_toolchain
build:remote --javabase=@buildbuddy_toolchain//:javabase_jdk8
build:remote --host_javabase=@buildbuddy_toolchain//:javabase_jdk8
build:remote --java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
build:remote --host_java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
build:remote --jobs=100
build:remote --disk_cache=
build:remote --remote_download_minimal
build:remote --noworker_sandboxing
build:remote --strategy=Scalac=remote
test:remote --remote_download_minimal
test:remote --remote_executor=grpcs://cloud.buildbuddy.io
test:remote --host_platform=//:buildbuddy_platform
test:remote --platforms=//:buildbuddy_platform
test:remote --extra_execution_platforms=//:buildbuddy_platform
test:remote --crosstool_top=@buildbuddy_toolchain//:toolchain
test:remote --extra_toolchains=@buildbuddy_toolchain//:cc_toolchain
test:remote --javabase=@buildbuddy_toolchain//:javabase_jdk8
test:remote --host_javabase=@buildbuddy_toolchain//:javabase_jdk8
test:remote --java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
test:remote --host_java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
test:remote --jobs=100
test:remote --disk_cache=
test:remote --noworker_sandboxing
test:remote --strategy=Scalac=remote
# Load any settings specific to the current user.
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members
# This needs to be last statement in this
# config, as the user configuration should be able to overwrite flags from this file.
# See https://docs.bazel.build/versions/master/best-practices.html#bazelrc
# (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing,
# rather than user.bazelrc as suggested in the Bazel docs)
try-import %workspace%/.bazelrc.user