%% vim: ts=4 sw=4 et ft=erlang
{cover_enabled, true}.

{erl_opts, [
    debug_info
]}.

{project_plugins, [rebar3_ex_doc]}.

{hex, [{doc, ex_doc}]}.

{ex_doc, [
    {source_url, <<"https://github.com/choptastic/sql_bridge">>},
    {extras, [<<"README.md">>, <<"LICENSE.md">>]},
    {main, <<"readme">>}
]}.


{deps, [
    {uuid, "2.0.7", {pkg, uuid_erl}},
    b64fast,
    erlias,
    poolboy,
    epgsql,%  {git, "https://github.com/choptastic/epgsql", {branch, master}}},
    epgsql_decimal,
    mysql
    %{mysql,   {git, "https://github.com/mysql-otp/mysql-otp", {branch, master}}}
]}.

{dialyzer, [
    {plt_apps, all_deps},
    {plt_extra_apps, [
        syntax_tools,
        mysql,
        epgsql,
        epgsql_decimal,
        poolboy,
        b64fast,
        decimal,
        erlias,
        uuid,
        quickrand,
        eunit
    ]}
]}.

{pre_hooks,[
% We no longer need the compat generation script.  Re-enable if we ever do
%        {"linux|bsd|darwin|solaris", compile, "escript priv/compat.escript"},
%        {"win32", compile, "escript.exe priv\\compat.escript"}
]}.

{profiles, [
    {dev, [
        {deps, [sync]}
    ]}
]}.
