summaryrefslogtreecommitdiff
path: root/user-template.bazelrc
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2021-07-12 22:03:28 +0200
committerPhilip Kuryloski <kuryloskip@vmware.com>2021-07-12 22:03:28 +0200
commit18e460c129c2b5e1d1ef5bc53c5ce65bfc47f1af (patch)
tree39dd2f08bbba956dd553d863b2278f08b14e11b3 /user-template.bazelrc
parentfd1dd02ecf963afc2d21ac268eff00004201f49e (diff)
downloadrabbitmq-server-git-18e460c129c2b5e1d1ef5bc53c5ce65bfc47f1af.tar.gz
Use a split .bazelrc so we can check most of the file into the repo
Now a base .bazelrc is provided, which will import a user.bazelrc file, allowing local additions and overrides (like credentials and/or os specific config). user-template.bazelrc provides an example.
Diffstat (limited to 'user-template.bazelrc')
-rw-r--r--user-template.bazelrc16
1 files changed, 16 insertions, 0 deletions
diff --git a/user-template.bazelrc b/user-template.bazelrc
new file mode 100644
index 0000000000..20adf1b95c
--- /dev/null
+++ b/user-template.bazelrc
@@ -0,0 +1,16 @@
+build --@bazel-erlang//:erlang_home=/Users/rabbitmq/kerl/24.0
+build --@bazel-erlang//:erlang_version=24.0
+build --//:elixir_home=/Users/rabbitmq/.kiex/elixirs/elixir-1.12.0/lib/elixir
+
+# rabbitmqctl wait shells out to 'ps', which is broken in the bazel macOS
+# sandbox (https://github.com/bazelbuild/bazel/issues/7448)
+# adding "--spawn_strategy=local" to the invocation is a workaround
+build --spawn_strategy=local
+
+# run one test at a time on the local machine
+build --test_strategy=exclusive
+
+# don't re-run flakes automatically on the local machine
+build --flaky_test_attempts=1
+
+build:rbe --remote_header=x-buildbuddy-api-key=YOUR_API_KEY