2013-07-20 04:01:15 +00:00
|
|
|
{require_otp_vsn, "R13B04|R14|R15|R16"}.
|
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]},
|
2012-01-11 00:21:39 +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, [
|
2016-10-13 23:07:54 +00:00
|
|
|
{lager, ".*", {git, "https://github.com/basho/lager", {tag, "3.2.4"}}},
|
|
|
|
{getopt, ".*", {git, "https://github.com/basho/getopt.git", {tag, "v0.8.2"}}},
|
|
|
|
{meck, ".*", {git, "https://github.com/basho/meck.git", {tag, "0.8.2"}}},
|
|
|
|
{mapred_verify, ".*", {git, "https://github.com/basho/mapred_verify", {branch, "master"}}},
|
|
|
|
{riakc, ".*", {git, "https://github.com/basho/riak-erlang-client", {branch, "develop"}}},
|
|
|
|
{riakhttpc, ".*", {git, "https://github.com/basho/riak-erlang-http-client", {branch, "develop"}}},
|
|
|
|
{kvc, ".*", {git, "https://github.com/basho/kvc.git", {tag, "v1.5.0"}}},
|
|
|
|
{druuid, ".*", {git, "https://github.com/basho/druuid.git", {tag, "0.2"}}},
|
2016-10-18 22:09:03 +00:00
|
|
|
{tdiff, ".*", {git, "https://github.com/basho/tdiff", {tag, "0.1"}}},
|
2016-10-17 20:27:17 +00:00
|
|
|
{rebar_lock_deps_plugin, ".*", {git, "https://github.com/basho/rebar_lock_deps_plugin.git", {tag, "3.1.0p1"}}}
|
2012-01-11 00:21:39 +00:00
|
|
|
]}.
|
|
|
|
|
2016-04-11 08:27:34 +00:00
|
|
|
{escript_incl_apps, [goldrush, lager, getopt, riakhttpc, riakc, ibrowse, mochiweb, kvc, tdiff]}.
|
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"}.
|
2012-08-20 15:05:43 +00:00
|
|
|
{plugin_dir, "src"}.
|
2016-10-17 20:27:17 +00:00
|
|
|
{plugins, [rebar_riak_test_plugin, rebar_lock_deps_plugin]}.
|
2012-08-20 22:24:20 +00:00
|
|
|
{riak_test, [
|
2014-04-16 00:33:06 +00:00
|
|
|
{test_paths, ["tests", "perf"]},
|
2012-08-30 18:32:13 +00:00
|
|
|
{test_output, "ebin"}
|
2012-09-12 10:38:37 +00:00
|
|
|
]}.
|