%%% -*- mode: erlang -*-

{erl_opts, [debug_info]}.

{minimum_otp_vsn, "18.0"}.

{deps, [
        {cowlib, "1.0.0"},
        {gproc, "0.5.0"},
        {quintana, "0.2.0"}
       ]}.

{ct_opts, [{ct_hooks, [cth_readable_shell]}]}.

{profiles,
 [
  {test,
   [{deps,
     [{jsx, "2.7.2"},
      {meck, "0.8.3"},
      {cth_readable, ".*", {git, "https://github.com/ferd/cth_readable.git", {branch, "master"}}},
      {cowboy, "1.0.0"},
      {http_proxy, ".*", {git, "https://github.com/puzza007/http_proxy.git", {branch, "rebar3"}}}
     ]}]
  }]
}.

{pre_hooks, [{"(linux|darwin|solaris)", compile, "make -C c_src"},
             {"freebsd", compile, "gmake -C c_src"}]}.

{post_hooks, [{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
              {"freebsd", clean, "gmake -C c_src clean"}]}.

{dialyzer, [
    {warnings, [no_return, unmatched_returns, error_handling]},
    {plt_extra_apps, [cowlib, gproc]}
]}.

{shell_apps, [katipo]}.

{xref_checks, [undefined_function_calls, undefined_functions,
               locals_not_used, deprecated_function_calls,
               deprecated_functions]}.

{plugins, [rebar3_hex]}.
