forked from emqx/emqtt-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
34 lines (28 loc) · 1.12 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
{minimum_otp_vsn, "21.0"}.
{erl_opts, [debug_info,
warn_export_all,
warn_unused_import,
warnings_as_errors
]}.
{xref_checks, [undefined_function_calls]}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{validate_app_modules, true}.
{deps, [
{getopt, "1.0.1"},
{emqtt, {git, "https://github.com/emqx/emqtt", {tag, "v1.0.0"}}}
]}.
{escript_name, emqtt_bench}.
{escript_main_app, emqtt_bench}.
{escript_emu_args, "%%! -smp true +K true +A 16 +P 200000 -env ERL_MAX_PORTS 100000 -env ERTS_MAX_PORTS 100000\n"}.
{escript_shebang, "#!/usr/bin/env escript\n"}.
{provider_hooks, [{post, [{compile, escriptize}]}]}.
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
escriptize,
"cp \"$REBAR_BUILD_DIR/bin/emqtt_bench\" ./emqtt_bench"},
{"win32",
escriptize,
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ emqtt_bench* "
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
]}.