rebar.config

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

{erl_opts, [debug_info]}.

{minimum_otp_vsn, "18.0"}.

{deps, [
        {cowlib, "1.0.2"},
        {worker_pool, "2.3.0"},
        {metrics, "2.4.0"}
       ]}.

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

{profiles,
 [
  {test,
   [{deps,
     [{jsx, "2.7.2"},
      {meck, "0.8.7"},
      {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, worker_pool]}
]}.

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

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

{plugins, [rebar3_hex,
           {coveralls, {git, "https://github.com/markusn/coveralls-erl", {ref, "57a190502cd2606d2b5cc142bd5cec1ec7c497b2"}}}]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{coveralls_coverdata, "_build/test/cover/ct.coverdata"}.
{coveralls_service_name, "travis-ci"}.