wapi-lib/rebar.config
Sergey Yelin efea4bf6be
ED-242: Upgrade Erlang and deps (#25)
* ED-242: Upgrade Erlang and deps

* Update libs
2021-09-16 15:28:04 +03:00

137 lines
4.8 KiB
Erlang

% Common project erlang options.
{erl_opts, [
% mandatory
debug_info,
warnings_as_errors,
warn_export_all,
warn_missing_spec,
warn_untyped_record,
warn_export_vars,
% by default
warn_unused_record,
warn_bif_clash,
warn_obsolete_guard,
warn_unused_vars,
warn_shadow_vars,
warn_unused_import,
warn_unused_function,
warn_deprecated_function
% at will
% bin_opt_info
% no_auto_import
% warn_missing_spec_all
]}.
% Common project dependencies.
{deps, [
{prometheus, "4.8.1"},
{prometheus_cowboy, "0.1.8"},
{erl_health, {git, "https://github.com/rbkmoney/erlang-health.git", {branch, master}}},
{genlib, {git, "https://github.com/rbkmoney/genlib.git", {branch, "master"}}},
{cowboy_draining_server, {git, "https://github.com/rbkmoney/cowboy_draining_server.git", {branch, "master"}}},
{uuid, {git, "https://github.com/okeuday/uuid.git", {branch, "master"}}},
{scoper, {git, "https://github.com/rbkmoney/scoper.git", {branch, "master"}}},
{thrift, {git, "https://github.com/rbkmoney/thrift_erlang.git", {branch, "master"}}},
{woody, {git, "https://github.com/rbkmoney/woody_erlang.git", {branch, "master"}}},
{erl_health, {git, "https://github.com/rbkmoney/erlang-health.git", {branch, "master"}}},
{dmt_client, {git, "https://github.com/rbkmoney/dmt_client.git", {branch, master}}},
{damsel, {git, "https://github.com/rbkmoney/damsel.git", {branch, "release/erlang/master"}}},
{identdocstore_proto, {git, "https://github.com/rbkmoney/identdocstore-proto.git", {branch, "master"}}},
{fistful_proto, {git, "https://github.com/rbkmoney/fistful-proto.git", {branch, "master"}}},
{fistful_reporter_proto, {git, "https://github.com/rbkmoney/fistful-reporter-proto.git", {branch, "master"}}},
{file_storage_proto, {git, "https://github.com/rbkmoney/file-storage-proto.git", {branch, "master"}}},
{bender_client, {git, "https://github.com/rbkmoney/bender_client_erlang.git", {branch, "master"}}},
{bender_proto, {git, "https://github.com/rbkmoney/bender-proto.git", {branch, "master"}}},
{lechiffre, {git, "https://github.com/rbkmoney/lechiffre.git", {branch, "master"}}},
{cowboy_cors, {git, "https://github.com/rbkmoney/cowboy_cors.git", {branch, master}}},
{cowboy_access_log, {git, "https://github.com/rbkmoney/cowboy_access_log.git", {branch, "master"}}},
{bouncer_proto, {git, "https://github.com/rbkmoney/bouncer-proto.git", {branch, "master"}}},
{bouncer_client, {git, "https://github.com/rbkmoney/bouncer_client_erlang.git", {branch, "master"}}},
{token_keeper_client, {git, "git@github.com:rbkmoney/token-keeper-client.git", {branch, master}}},
{uac, {git, "https://github.com/rbkmoney/erlang_uac.git", {branch, master}}}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
deprecated_functions_calls,
deprecated_functions
]}.
{dialyzer, [
{warnings, [
% mandatory
unmatched_returns,
error_handling,
race_conditions,
unknown
]},
{plt_apps, all_deps}
]}.
{profiles, [
{prod, [
{deps, [
{how_are_you, {git, "https://github.com/rbkmoney/how_are_you.git", {ref, "2fd80134"}}},
{woody_api_hay, {git, "https://github.com/rbkmoney/woody_api_hay.git", {ref, "4c39134cd"}}},
% Introspect a node running in production
{recon, "2.5.2"},
{logger_logstash_formatter,
{git, "https://github.com/rbkmoney/logger_logstash_formatter.git", {ref, "87e52c7"}}}
]},
{relx, [
{release, {'wapi-v0', "0.1.0"}, [
% debugger
{runtime_tools, load},
% profiler
{tools, load},
{recon, load},
{logger_logstash_formatter, load},
woody_api_hay,
how_are_you,
sasl,
wapi
]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{mode, minimal},
{extended_start_script, true},
%% wapi
{overlay, [
{mkdir, "var/keys/wapi"},
{copy, "apps/wapi/var/keys/wapi/private.pem", "var/keys/wapi/private.pem"}
]}
]}
]},
{test, [
{deps, [
{meck, "0.9.2"}
]},
{cover_enabled, true},
{cover_excl_apps, [
swag_client_payres,
swag_client_wallet,
swag_server_wallet
]},
{dialyzer, [{plt_extra_apps, [eunit, common_test, meck]}]}
]}
]}.
{plugins, [
{erlfmt, "1.0.0"}
]}.
{erlfmt, [
{print_width, 120},
{files, [
"apps/wapi*/{src,include,test}/*.{hrl,erl,app.src}",
"rebar.config",
"elvis.config",
"config/sys.config",
"test/*/sys.config"
]}
]}.