rebar.config

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

{erl_opts, [debug_info]}.

{minimum_otp_vsn, "19.1"}.

{deps, [
        {cowlib, "2.4.0"},
        {worker_pool, "3.1.1"},
        {metrics, "2.5.0"}
       ]}.

{profiles,
 [
  {test,
   [{deps,
     [{jsx, "2.9.0"},
      {meck, "0.8.10"},
      {cowboy, "2.4.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, worker_pool]}
]}.

{shell, [{apps, [katipo]}]}.

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

{plugins, [rebar3_hex,
           {coveralls, "1.4.0"}]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, "_build/test/cover/ct.coverdata"}.
{coveralls_service_name, "travis-ci"}.