55 lines
1.4 KiB
Erlang
55 lines
1.4 KiB
Erlang
{erl_opts, [debug_info, {i, "include"}]}.
|
|
|
|
{src_dirs, ["src", "test/api"]}.
|
|
|
|
{deps, [
|
|
{cowboy, "2.10.0"},
|
|
{jsx, "3.1.0"},
|
|
{jose, "1.11.10"},
|
|
{argon2, "1.2.0"},
|
|
{meck, "0.9.2"},
|
|
{gun, "2.2.0"},
|
|
{prometheus_cowboy, "0.2.0"},
|
|
{cowboy_swagger, "2.8.0"}
|
|
]}.
|
|
|
|
{shell, [
|
|
{apps, [eventhub]}
|
|
]}.
|
|
|
|
{relx, [
|
|
{release, {eventhub, "0.0.1"}, [eventhub, sasl]},
|
|
{dev_mode, true},
|
|
{include_erts, true},
|
|
{extended_start_script, true}
|
|
]}.
|
|
|
|
{profiles, [
|
|
{prod, [
|
|
{relx, [
|
|
{release, {eventhub, "0.0.1"}, [eventhub, sasl,cowboy, jose, jsx, argon2, runtime_tools, os_mon, prometheus_cowboy]},
|
|
{include_erts, true},
|
|
{extended_start_script, true},
|
|
{sys_config, "./src/config/sys.config"}
|
|
]}
|
|
]},
|
|
{test, [
|
|
{erl_opts, [debug_info, nowarn_export_all, {i, "include"}, {d, 'TEST'}]},
|
|
{src_dirs, ["src", "test/unit"]},
|
|
{deps, [
|
|
{meck, "0.9.2"}
|
|
]}
|
|
]}
|
|
]}.
|
|
|
|
{ct_opts, [
|
|
{src_dirs, ["src", "test/api"]},
|
|
{sys_config, ["config/sys.config"]}, % Load app config
|
|
{logdir, "logs/test/ct"}, % Where to put HTML reports
|
|
{verbose, true} % Print more info to console
|
|
]}.
|
|
|
|
{ct_compile_opts, [
|
|
{i, "include"}, % Include directory
|
|
{d, 'DEBUG'} % Define macros
|
|
]}. |