From cce6b462b42dc5cad7c6742ca8ef067d923fde0a Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Sun, 19 Jan 2020 17:13:54 +0800 Subject: [PATCH] Update erl_opts and add 'compressed' opt for edge --- rebar.config | 48 +++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/rebar.config b/rebar.config index d2cb0cf24..3c7113214 100644 --- a/rebar.config +++ b/rebar.config @@ -1,24 +1,32 @@ {minimum_otp_vsn, "21.0"}. {deps, - [{gproc, "0.8.0"}, - {jiffy, "1.0.1"}, - {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.7.1"}}}, - {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.6.0"}}}, - {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.7.1"}}}, - {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.4.1"}}}, - {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.0.0"}}} - ]}. + [{gproc, "0.8.0"}, + {jiffy, "1.0.1"}, + {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.7.1"}}}, + {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.6.0"}}}, + {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.7.1"}}}, + {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.4.1"}}}, + {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.0.0"}}} + ]}. -{edoc_opts, [{preprocess, true}]}. {erl_opts, [warn_unused_vars, warn_shadow_vars, warn_unused_import, warn_obsolete_guard, - debug_info]}. + no_debug_info, + compressed %% for edge + ]}. + +{overrides, [{override, [{erl_opts, [no_debug_info, compressed]}]}]}. + +{edoc_opts, [{preprocess, true}]}. + {xref_checks, [undefined_function_calls, undefined_functions, locals_not_used, deprecated_function_calls, - warnings_as_errors, deprecated_functions]}. + warnings_as_errors, deprecated_functions + ]}. + {cover_enabled, true}. {cover_opts, [verbose]}. {cover_export_enabled, true}. @@ -28,11 +36,13 @@ {erl_first_files, ["src/emqx_logger.erl"]}. {profiles, - [{test, - [{deps, - [{bbmustache, "1.7.0"}, % hex - {emqtt, {git, "https://github.com/emqx/emqtt", {branch, "develop"}}}, - {emqx_ct_helpers, {git, "https://github.com/emqx/emqx-ct-helpers", {branch, "develop"}}} - ]} - ]} - ]}. + [{test, + [{deps, + [{bbmustache, "1.7.0"}, + {emqtt, {git, "https://github.com/emqx/emqtt", {branch, "develop"}}}, + {emqx_ct_helpers, {git, "https://github.com/emqx/emqx-ct-helpers", {branch, "develop"}}} + ]}, + {erl_opts, [debug_info]} + ]} + ]}. +