{erl_opts, [debug_info]}.
{deps, []}.

{minimum_otp_vsn, "24.0"}.

{shell, [
  % {config, "config/sys.config"},
    {apps, [sqlite]}
]}.

{pre_hooks,
    [{"(linux|darwin|solaris)", compile, "make -C c_src"},
        {"(freebsd)", compile, "gmake -C c_src"},
        {"(win32)", compile, "nmake -F c_src/Makefile.win"}]}.
{post_hooks,
    [{"(linux|darwin|solaris)", clean, "make -C c_src clean"},
        {"(freebsd)", clean, "gmake -C c_src clean"},
        {"(win32)", clean, "nmake -F c_src/Makefile.win clean"}]}.

%{cover_enabled, true}.
%{cover_opts, [verbose]}.
{ct_opts, [
    %% {ct_hooks, [cth_surefire]}, %% for GitLab CI reports
    {keep_logs, 1}
]}.

{hex, [
    {doc, #{provider => ex_doc}}
]}.

{project_plugins, [rebar3_ex_doc]}.

{ex_doc, [
    {extras, [
        {"README.md", #{title => "Overview"}},
        {"LICENSE.md", #{title => "License"}}
    ]},
    {main, "README.md"},
    {source_url, "https://github.com/max-au/sqlite"},
    {source_ref, <<"master">>}
]}.
