2019-03-08 11:06:07 +00:00
|
|
|
{require_otp_vsn, "R16|17|18|19|20"}.
|
2012-01-11 00:21:39 +00:00
|
|
|
{cover_enabled, true}.
|
|
|
|
{edoc_opts, [{preprocess, true}]}.
|
|
|
|
%%{edoc_opts, [{doclet, edown_doclet}, {pretty_printer, erl_pp}]}.
|
|
|
|
%%{edoc_opts, [{doclet, my_layout}, {pretty_printer, erl_pp}]}.
|
|
|
|
%%{edoc_opts, [{layout, my_layout}, {file_suffix, ".xml"}, {pretty_printer, erl_pp}]}.
|
2014-04-16 00:33:06 +00:00
|
|
|
{erl_opts, [{src_dirs, [src, intercepts, perf]},
|
2019-05-09 11:01:02 +00:00
|
|
|
% warnings_as_errors,
|
|
|
|
{parse_transform, lager_transform}]}.
|
support for anonymous function intercepts
Allow intercept functions passed to rt_intercept:add/2 to be anonymous. In
compiled code they can either be a plain anonymous function, assuming they
don't use any variables from the surrounding context, or they can be a
2-tuple like this:
{[FreeVar1, ...],
fun(Arg1, ...) -> ... end}
where FreeVar1 etc. is a list of free variables to be closed over so that
they can be used within the anonymous function. For making interactive
calls to rt_intercept:add/2 from the Erlang shell, only the anonymous
function form is required, even if it uses free variables, though the
2-tuple form is also acceptable.
For compiled code, support for anonymous intercept functions is implemented
via a parse transform, and so to use anonymous functions the intercept
structure(s) containing them must be defined directly inline as part of the
final argument to rt_intercept:add/2, i.e., they cannot be first assigned
to a variable that is then used within the argument. This is because the
value of such a variable might not be visible to the parse transform.
Add a description of anonymous function intercepts to the README.
2014-04-06 13:32:27 +00:00
|
|
|
{erl_first_files, ["src/rt_intercept_pt.erl"]}.
|
2012-01-11 00:21:39 +00:00
|
|
|
|
2014-12-19 23:04:21 +00:00
|
|
|
{eunit_opts, [verbose]}.
|
|
|
|
|
2012-01-11 00:21:39 +00:00
|
|
|
{deps, [
|
2019-03-08 11:06:07 +00:00
|
|
|
gen_fsm_compat,
|
2016-09-21 22:23:56 +00:00
|
|
|
{lager, ".*", {git, "git://github.com/basho/lager", {tag, "3.2.1"}}},
|
2012-08-29 17:06:28 +00:00
|
|
|
{getopt, ".*", {git, "git://github.com/jcomellas/getopt", {tag, "v0.4"}}},
|
2019-03-08 13:05:14 +00:00
|
|
|
{meck, {git, "git://github.com/eproxus/meck.git", {tag, "0.8.13"}}},
|
2019-10-22 15:19:39 +00:00
|
|
|
{mapred_verify, ".*", {git, "git://github.com/basho/mapred_verify", {branch, "develop-3.0"}}},
|
2019-03-08 11:06:07 +00:00
|
|
|
{riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", {branch, "develop-3.0"}}},
|
|
|
|
{riakhttpc, ".*", {git, "git://github.com/basho/riak-erlang-http-client", {branch, "develop-3.0"}}},
|
|
|
|
{kvc, "1.7.0", {git, "https://github.com/etrepum/kvc", {tag, "v1.7.0"}}},
|
2018-11-29 22:54:26 +00:00
|
|
|
{kv_index_tictactree, ".*", {git, "https://github.com/martinsumner/kv_index_tictactree.git", {branch, "master"}}}
|
2012-01-11 00:21:39 +00:00
|
|
|
]}.
|
|
|
|
|
2018-11-30 16:26:29 +00:00
|
|
|
{escript_incl_apps, [goldrush, lager, getopt, riakhttpc, riakc, ibrowse, mochiweb, kvc, kv_index_tictactree]}.
|
2013-04-26 14:33:09 +00:00
|
|
|
{escript_emu_args, "%%! -escript main riak_test_escript +K true +P 10000 -env ERL_MAX_PORTS 10000\n"}.
|
2019-03-08 13:05:14 +00:00
|
|
|
|
|
|
|
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
|
|
|
|
escriptize,
|
|
|
|
"cp \"$REBAR_BUILD_DIR/bin/riak_test\" ./riak_test"},
|
|
|
|
{"win32",
|
|
|
|
escriptize,
|
|
|
|
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ riak_test* "
|
|
|
|
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
|
|
|
|
]}.
|
2019-05-09 11:01:02 +00:00
|
|
|
{profiles, [{test, [{extra_src_dirs, ["tests", "perf"]}]}]}.
|
2019-03-08 11:06:07 +00:00
|
|
|
%% {plugin_dir, "src"}.
|
|
|
|
%% {plugins, [rebar_riak_test_plugin]}.
|
|
|
|
%% {riak_test, [
|
2019-05-09 11:01:02 +00:00
|
|
|
%% {test_paths, ["tests", "perf"]},
|
|
|
|
%% {test_output, "ebin"}
|
|
|
|
%%]}.
|