78 lines
1.5 KiB
Python
78 lines
1.5 KiB
Python
load("@rules_erlang//:xref2.bzl", "xref")
|
|
load("@rules_erlang//:dialyze.bzl", "dialyze", "plt")
|
|
load(
|
|
"//:rabbitmq.bzl",
|
|
"BROKER_VERSION_REQUIREMENTS_ANY",
|
|
"RABBITMQ_DIALYZER_OPTS",
|
|
"assert_suites",
|
|
"broker_for_integration_suites",
|
|
"rabbitmq_app",
|
|
"rabbitmq_integration_suite",
|
|
)
|
|
|
|
APP_NAME = "rabbitmq_tracing"
|
|
|
|
APP_DESCRIPTION = "RabbitMQ message logging / tracing"
|
|
|
|
APP_MODULE = "rabbit_tracing_app"
|
|
|
|
APP_ENV = """[
|
|
{directory, "/var/tmp/rabbitmq-tracing"},
|
|
{username, <<"guest">>},
|
|
{password, <<"guest">>}
|
|
]"""
|
|
|
|
BUILD_DEPS = [
|
|
"//deps/amqp_client:erlang_app",
|
|
"//deps/rabbitmq_management_agent:erlang_app",
|
|
]
|
|
|
|
DEPS = [
|
|
"//deps/rabbit_common:erlang_app",
|
|
"//deps/rabbitmq_management:erlang_app",
|
|
]
|
|
|
|
RUNTIME_DEPS = [
|
|
"//deps/rabbit:erlang_app",
|
|
]
|
|
|
|
rabbitmq_app(
|
|
app_description = APP_DESCRIPTION,
|
|
app_env = APP_ENV,
|
|
app_extra_keys = BROKER_VERSION_REQUIREMENTS_ANY,
|
|
app_module = APP_MODULE,
|
|
app_name = APP_NAME,
|
|
build_deps = BUILD_DEPS,
|
|
runtime_deps = RUNTIME_DEPS,
|
|
deps = DEPS,
|
|
)
|
|
|
|
xref()
|
|
|
|
plt(
|
|
name = "base_plt",
|
|
deps = BUILD_DEPS + DEPS,
|
|
)
|
|
|
|
dialyze(
|
|
dialyzer_opts = RABBITMQ_DIALYZER_OPTS,
|
|
plt = ":base_plt",
|
|
)
|
|
|
|
broker_for_integration_suites()
|
|
|
|
PACKAGE = "deps/rabbitmq_tracing"
|
|
|
|
rabbitmq_integration_suite(
|
|
PACKAGE,
|
|
name = "rabbit_tracing_SUITE",
|
|
)
|
|
|
|
assert_suites()
|
|
|
|
alias(
|
|
name = "rabbitmq_tracing",
|
|
actual = ":erlang_app",
|
|
visibility = ["//visibility:public"],
|
|
)
|