Packages

A forward-only SQL migration engine for PostgreSQL, built on gen_statem and temporal journaling.

Current section

Files

Jump to
migraterl rebar.config
Raw

rebar.config

%% == Compiler options ==
{erl_opts, [
debug_info,
warn_bif_clash,
warn_deprecated_function,
warn_export_all,
warn_export_vars,
warn_obsolete_guard,
warn_shadow_vars,
warn_untyped_record,
warn_unused_function,
warn_unused_import,
warn_unused_record,
warn_unused_vars,
warnings_as_errors,
{i, "./include"}
]}.
%% == Dependencies and plugins ==
{deps, [
{epgsql, "4.7.1"},
{erlandono, "3.1.3"}
]}.
{plugins, [
{covertool, "v2.0.4"},
{rebar3_nix, ".*", {git, "https://github.com/erlang-nix/rebar3_nix.git", {tag, "v0.1.1"}}},
{rebar3_hex, "v7.0.8"},
{rebar3_ex_doc, "v0.2.25"}
]}.
{ex_doc, [
{source_url, <<"https://github.com/schonfinkel/migraterl">>},
{extras, ["README.md", "LICENSE"]},
{main, "README.md"}
]}.
{hex, [{doc, ex_doc}]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
{cover_opts, [verbose]}.
{covertool, [
{coverdata_files, [
"ct.coverdata",
"eunit.coverdata"
]}
]}.
%% == Releases ==
{relx, [
{release, {migraterl, "0.1.2"}, [
kernel,
stdlib,
sasl,
epgsql,
erlandono,
migraterl
]},
%% https://rebar3.org/docs/deployment/releases/#modes
{mode, dev},
{extended_start_script, true}
%% the .src form of the configuration files do
%% not require setting RELX_REPLACE_OS_VARS
%% {sys_config_src, "./config/sys.config.src"},
%% {vm_args_src, "./config/vm.args.src"}
]}.
%% == Shell ==
%% apps to auto-boot with `rebar3 shell'; defaults to apps
%% specified in a `relx' tuple, if any.
{shell, [
{sys_config, "config/local.config"},
{apps, [
kernel,
stdlib,
sasl,
epgsql,
erlandono
]}
]}.
%% == Profiles ==
{profiles, [
%% prod is the default mode when prod
%% profile is used, so does not have
%% to be explicitly included like this
{prod, [
{relx, [
{mode, prod}
]}
]},
{test, [
{relx, [
{overlay, [
{mkdir, "test/migrations"},
{copy, "test/migrations/*", "\{\{output_dir\}\}/test/migrations/"}
]}
]}
]}
]}.
%% == Dialyzer ==
{dialyzer, [
{warnings, [
no_return,
no_improper_lists,
unmatched_returns,
error_handling,
underspecs,
unknown
]}
]}.
%% == Common Test ==
{ct_opts, []}.
%% == EUnit Tests ==
{eunit_tests, [
{dir, test}
]}.
{eunit_opts, [verbose]}.
%% == Escript ==