forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
53 lines (38 loc) · 2.26 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
common --experimental_allow_tags_propagation
build --incompatible_strict_action_env # use an environment with a static value for PATH and do not inherit LD_LIBRARY_PATH
# default to optimized and stripped binaries. These greatly optimized rust test runtimes.
build --compilation_mode=opt
build --strip=always
build --strategy_regexp=ic-os/guestos/.*=local
build:ci --remote_cache=buildfarm.dfinity.systems # TODO: set as default when the infrastructure will be reliably accessible from development machines
build --experimental_remote_cache_async
build --incompatible_remote_build_event_upload_respect_no_cache
build --noremote_upload_local_results # Whether to upload locally executed action results to the remote cache.
build --execution_log_json_file=bazel-build-log.json
build --bes_results_url=https://dash.buildfarm.dfinity.systems/invocation/
build:ci --bes_backend=bes.buildfarm.dfinity.systems # TODO: set as default when the infrastructure will be reliably accessible from development machines
build --remote_local_fallback
build --workspace_status_command=$(pwd)/bazel/workspace_status.sh
build --cxxopt='-std=c++17'
build --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build --output_groups=+clippy_checks
build --@rules_rust//:clippy.toml=//:clippy.toml --@rules_rust//:clippy_flags=-D,warnings,-D,clippy::all,-A,clippy::redundant_closure,-C,debug-assertions=off
build --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build --output_groups=+rustfmt_checks
build --@rules_rust//:rustfmt.toml=//:rustfmt.toml
# Exclude system tests by default
# https://github.com/bazelbuild/bazel/issues/8439
build --build_tag_filters="-system_test"
test --test_tag_filters="-system_test,-post_master"
test --test_output=errors
test:alltests --test_tag_filters=""
# TODO(IDX-2374): enable alltests in CI when we will have actual system tests.
#test:ci --config=alltests
build:ci --noremote_local_fallback
build:ci --remote_upload_local_results # Whether to upload locally executed action results to the remote cache.
build:ci --repository_cache=/cache/bazel
# So that developers can build in debug mode.
build:dev --compilation_mode=fastbuild
# Run `bazel build ... --config=local` if you don't have access to the buildfarm infrastructure.
build:local --remote_cache=
build:local --bes_backend=