Commit Graph

17 Commits

Author SHA1 Message Date
Rin Kuryloski eb94a58bc9 Add a workflow to compare the bazel/erlang.mk output
To catch any drift between the builds
2023-05-15 13:54:14 +02:00
Rin Kuryloski ced6520dee Mark additional rules as testonly 2023-02-28 21:36:49 +01:00
Rin Kuryloski 5fd207dd46 Remove 'w' option from ln call in //tools:symlink_deps_for_erlang_ls
as it's not a universal option, apparently
2023-01-05 14:59:23 +01:00
Rin Kuryloski 2d8e9c7750 Remove unused rule 2023-01-05 13:45:11 +01:00
Rin Kuryloski e244f6c03f Make erlang_ls links a bit more stable 2023-01-05 13:39:04 +01:00
Rin Kuryloski a8658ae68d Add "bazel run //tools:symlink_deps_for_erlang_ls"
for symlinking 3rd party deps into a place that erlang_ls can use them
2023-01-05 13:02:02 +01:00
Alexey Lebedeff 2f59e0bffa Make CT helpers available for erlang_ls
Fixes the problems when edititing test suites
2022-12-09 17:14:47 +01:00
Rin Kuryloski 00881314aa Remove commented code 2022-09-30 16:19:34 +02:00
Rin Kuryloski 638fb3f682 Attempt to make generated erlang_ls.config more stable
So that `-c dbg` does not require it to be regenerated
2022-09-30 13:53:56 +02:00
Rin Kuryloski 25ed8595c3 Turn the //tools:erlang_ls.config target into a generation script
So that one can `bazel run tools:erlang_ls.config > erlang_ls.config`
to generate a bazel friendly config
2022-09-30 13:48:53 +02:00
Rin Kuryloski ec337d0866 Change variable name 2022-09-30 13:06:27 +02:00
Rin Kuryloski 41a13e44e8 Add //tools:erlang_ls_files that generates a tree for Erlang LS
in the layout Erlang LS expects
2022-09-30 12:32:52 +02:00
Philip Kuryloski 327f075d57 Make rabbitmq-server work with rules_erlang 3
Also rework elixir dependency handling, so we no longer rely on mix to
fetch the rabbitmq_cli deps

Also:

- Specify ra version with a commit rather than a branch
- Fixup compilation options for erlang 23
- Add missing ra reference in MODULE.bazel
- Add missing flag in oci.yaml
- Reduce bazel rbe jobs to try to save memory
- Use bazel built erlang for erlang git master tests
- Use the same cache for all the workflows but windows
- Avoid using `mix local.hex --force` in elixir rules
  - Fetching seems blocked in CI, and this should reduce hex api usage in
    all builds, which is always nice
- Remove xref and dialyze tags since rules_erlang 3 includes them in
  the defaults
2022-06-08 14:04:53 +02:00
Philip Kuryloski efcd881658 Use rules_erlang v2
bazel-erlang has been renamed rules_erlang. v2 is a substantial
refactor that brings Windows support. While this alone isn't enough to
run all rabbitmq-server suites on windows, one can at least now start
the broker (bazel run broker) and run the tests that do not start a
background broker process
2022-01-18 13:43:46 +01:00
Philip Kuryloski 75c50c0561 Additional erlang_ls.config fixes under bazel 2021-12-16 16:32:01 +01:00
Philip Kuryloski b7e85db824 Add deps/rabbit/apps/* to the bazel erlang_ls config 2021-12-07 09:42:41 +01:00
Philip Kuryloski 67ad541515 Add a bazel rule for generating erlang_ls.config
If you are using bazel, you can switch to this with:
1. `bazelisk build //tools:erlang_ls.config`
2. `cp bazel-bin/tools/erlang_ls.config erlang_ls.config`
2021-11-29 12:58:02 +01:00