Skip to main content

rebar.config

{erl_opts, [debug_info]}.

%% No hard runtime deps — all database drivers are optional.
%% Users add whichever driver they need in their own rebar.config.
{deps, []}.

{profiles, [
    {test, [
        {deps, [
            {meck,    "0.9.2"},
            {epgsql,  "4.8.0"},
            {mysql,   "1.8.0"},
            {esqlite, "0.8.1"}
        ]},
        {erl_opts, [debug_info]}
    ]},
    %% dev profile: all drivers for local development.
    {dev, [
        {deps, [
            {epgsql,  "4.8.0"},
            {mysql,   "1.8.0"},
            {esqlite, "0.8.1"}
        ]}
    ]}
]}.

%% CLI: rebar3 escriptize -> _build/default/bin/erlang_migrate_cli
{escript_main_app, erlang_migrate}.
{escript_name, erlang_migrate_cli}.
{escript_emu_args, "%%! -escript main erlang_migrate_cli\n"}.

{project_plugins, [rebar3_hex, rebar3_ex_doc]}.

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

{ex_doc, [
    {source_url, <<"https://github.com/imboy-pub/erlang_migrate">>},
    {extras, [<<"README.md">>, <<"CHANGELOG.md">>, <<"LICENSE">>]},
    {main, <<"README.md">>}
]}.