Skip to content

Releases: rabbitmq/rules_erlang

bazel-erlang 1.4.0

18 Nov 15:58

Choose a tag to compare

  • Adds a license_files attribute to bazel_erlang_lib, and appropriate args to the relevant macros

Full Changelog: 1.3.0...1.4.0

bazel-erlang 1.3.0

03 Nov 15:57

Choose a tag to compare

What's Changed

  • Add support for an equivalent to PROJECT_APP_EXTRA_KEYS from erlang.mk by @pjk25 in #11
  • Avoid accidentally changing to the home directory before ct_run by @pjk25 in #13
  • Allow generated files in erlang_lib/test_erlang_lib extra_priv by @pjk25 in #14
  • Add assert_suites macro by @pjk25 in #12
  • New approach to handling deps in tests by @pjk25 in #15

Full Changelog: 1.2.0...1.3.0

bazel-erlang 1.2.0

02 Sep 09:13
ef449fe

Choose a tag to compare

bazel-erlang 1.2.0

New Features

  • Support for common test hooks via #9.

Additional Changes

  • +deterministic is now included by default during compilation. This should increase the reproducibility of builds and improve cache hit ratios (#8).

bazel-erlang 1.1.1

29 Jul 09:28
927089a

Choose a tag to compare

bazel-erlang 1.1.1

Fixes

  • Corrects the handling of FOCUS in ct_sharded_test #5.

bazel-erlang 1.1.0

12 Jul 16:37

Choose a tag to compare

bazel-erlang 1.1.0

New Features

  • Support for "semi-automatic" bazel level sharding of common test suites via ct_sharded.bzl via #2.

Fixes

  • Corrects an issue where the xref rule could use a discovered escript binary rather than the one configured with --@bazel-erlang//:erlang_home. See #1 for more details.

bazel-erlang 1.0.0

28 Jun 14:35

Choose a tag to compare

This is the initial release of bazel-erlang

bazel-erlang provides bazel rules for compiling and testing Erlang code.

The main Providers, Rules and Macros are:

  • ErlangLibInfo provider: Represents a compiled erlang application in a form reusable within bazel-erlang
  • erlang_lib macro: compile erlang sources to beam files and expose the result via ErlangLibInfo
  • test_erlang_lib macro: a variant of erlang_lib for building sources for testing
  • bazel_erlang_lib rule: the underlying rule for erlang_lib and test_erlang_lib
  • xref macro: invokes xref-runner in the form of a bazel test
  • dialyze macro: invokes the dialyzer in the form of a bazel test
  • eunit macro: invokes eunit tests
  • ct_suite macro: invokes common test suites
  • hex_pm_bazel_erlang_lib macro: fetches an erlang library from hex.pm and defines :bazel_erlang_lib, providing ErlangLibInfo
  • github_bazel_erlang_lib macro: fetches an erlang library from github and defines :bazel_erlang_lib, providing ErlangLibInfo
  • shell rule: an executable rule providing an erlang shell with compiled libraries available in the code path