rebar.config 3.78 KB
Newer Older
Heinz N. Gies's avatar
Heinz N. Gies committed
1
%% -*- erlang -*-
Heinz N. Gies's avatar
Heinz N. Gies committed
2

Heinz N. Gies's avatar
Heinz N. Gies committed
3
{erl_opts, [debug_info, warnings_as_errors, {parse_transform, lager_transform}]}.
Heinz N. Gies's avatar
Heinz N. Gies committed
4 5 6 7 8

%%-------------------------------------------------------------------
%% Dependencies
%%-------------------------------------------------------------------

Heinz N. Gies's avatar
Heinz N. Gies committed
9 10
{deps,
 [
Heinz N. Gies's avatar
Heinz N. Gies committed
11
  {erlware_commons, "~>1.0.0"},
Heinz N. Gies's avatar
Heinz N. Gies committed
12
  {lager, "~>3.5.0"},
Heinz N. Gies's avatar
Heinz N. Gies committed
13
  {fifo_lager, "~>0.1.4"},
Heinz N. Gies's avatar
Heinz N. Gies committed
14 15 16
  {ranch, "~>1.2.0"},
  {cowboy, "~>1.0.0"},
  {jsone, "~>1.2.3"},
17
  fifo_utils,
Heinz N. Gies's avatar
Heinz N. Gies committed
18
  {msgpack, "0.3.5"},
Heinz N. Gies's avatar
Heinz N. Gies committed
19
  {dqe, ".*", {git, "https://gitlab.com/Project-FiFo/DalmatinerDB/dqe.git", {branch, "master"}}},
Heinz N. Gies's avatar
Heinz N. Gies committed
20
  {otters, "~>0.2.0"},
Heinz N. Gies's avatar
Heinz N. Gies committed
21 22
  eper,
  recon
Heinz N. Gies's avatar
Heinz N. Gies committed
23 24
 ]}.

Heinz N. Gies's avatar
Heinz N. Gies committed
25 26 27
%%-------------------------------------------------------------------
%% Plugins
%%-------------------------------------------------------------------
Heinz N. Gies's avatar
Heinz N. Gies committed
28

Heinz N. Gies's avatar
Heinz N. Gies committed
29
{project_plugins, [{rebar3_cuttlefish, "~>0.16.0"}]}.
David Cromberge's avatar
David Cromberge committed
30 31 32 33 34 35

%%-------------------------------------------------------------------
%% Cuttlefish
%%-------------------------------------------------------------------

{cuttlefish,
Heinz N. Gies's avatar
Heinz N. Gies committed
36
 [{file_name, "dfe.conf"},
David Cromberge's avatar
David Cromberge committed
37 38
  {schema_discovery, false}]}.

Heinz N. Gies's avatar
Heinz N. Gies committed
39

Heinz N. Gies's avatar
Heinz N. Gies committed
40 41 42 43 44

%%-------------------------------------------------------------------
%% Testing
%%-------------------------------------------------------------------

Heinz N. Gies's avatar
Heinz N. Gies committed
45 46
{cover_enabled, true}.

Heinz N. Gies's avatar
Heinz N. Gies committed
47 48 49 50 51 52 53 54 55 56
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.

{xref_checks, [undefined_function_calls, undefined_functions,
               locals_not_used, % exports_not_used, that is a problem with having multiple apps
               deprecated_function_calls, deprecated_functions]}.

%%-------------------------------------------------------------------
%% Profiles
%%-------------------------------------------------------------------

Heinz N. Gies's avatar
Heinz N. Gies committed
57
{profiles,
58 59 60
 [{smartos, [{relx, [{dev_mode, false}]}]},
  {freebsd, [{relx, [{dev_mode, false}]}]},
  {darwin, [{relx, [{dev_mode, false}]}]},
61
  {shell, [{deps, [sync]}]},
Kevin Meziere's avatar
Kevin Meziere committed
62
  {deb, [{relx, [{dev_mode, false}, {overlay_vars, "rel/vars/deb.config"}]}]},
Heinz N. Gies's avatar
Heinz N. Gies committed
63 64
  {lint,
   [{plugins,
Heinz N. Gies's avatar
Heinz N. Gies committed
65
     [rebar3_lint]}]},
66
  {eqc,
Heinz N. Gies's avatar
Heinz N. Gies committed
67 68 69
   [{plugins, [rebar3_eqc]},
    {deps, [fqc]}]}]}.

Heinz N. Gies's avatar
Heinz N. Gies committed
70 71 72
%%-------------------------------------------------------------------
%% Overrides
%%-------------------------------------------------------------------
Heinz N. Gies's avatar
Heinz N. Gies committed
73 74 75 76 77 78 79

{overrides,
 [
  {override, pooler,
   [{erl_opts,
     [{platform_define, "^[0-9]+", namespaced_types},
      debug_info,
Heinz N. Gies's avatar
Heinz N. Gies committed
80 81
      inline]}]}]}.

Heinz N. Gies's avatar
Heinz N. Gies committed
82 83 84 85
%%-------------------------------------------------------------------
%% RELx
%%-------------------------------------------------------------------

Heinz N. Gies's avatar
Heinz N. Gies committed
86
{relx,
Heinz N. Gies's avatar
Heinz N. Gies committed
87
 [{release, {dfe, "0.4.0"},
Heinz N. Gies's avatar
Heinz N. Gies committed
88 89 90 91
   [sasl,
    dalmatiner_frontend,
    {runtime_tools, load}, %% for dyntrace
    %% runtime tools
92
    {kernel, permanent},
Heinz N. Gies's avatar
Heinz N. Gies committed
93 94 95 96 97 98 99 100
    {recon, load},
    {eper, load}
   ]},
  {dev_mode, true},
  {include_erts, true},
  {generate_start_script, false},
  {overlay_vars, "rel/vars.config"},
  {overlay,
Heinz N. Gies's avatar
Heinz N. Gies committed
101 102
   [
    {mkdir, "etc"},
103
    {mkdir, "share"},
Heinz N. Gies's avatar
Heinz N. Gies committed
104 105 106
    {copy, "rel/files/erl", "erts-\{\{erts_vsn\}\}/bin/erl"},
    {copy, "rel/files/nodetool", "erts-\{\{erts_vsn\}\}/bin/nodetool"},
    {template, "rel/files/dalmatinerfe", "bin/dalmatinerfe"},
107 108 109

    {template, "share/dfe.xml", "share/dfe.xml"},

Heinz N. Gies's avatar
Heinz N. Gies committed
110
    {template, "schema/dalmatinerfe.schema", "share/schema/00-dalmatiner_frontend.schema"},
Heinz N. Gies's avatar
Heinz N. Gies committed
111 112 113 114
    {template, "\{\{build_dir\}\}/lib/ddb_connection/priv/ddb_connection.schema", "share/schema/01-ddb_connection.schema"},
    {template, "\{\{build_dir\}\}/lib/dqe/priv/dqe.schema", "share/schema/02-dqe.schema"},
    {template, "\{\{build_dir\}\}/lib/dqe_idx/priv/dqe_idx.schema", "share/schema/03-dqe_idx.schema"},
    {template, "\{\{build_dir\}\}/lib/dqe_idx_pg/priv/dqe_idx_pg.schema", "share/schema/04-dqe_idx_pg.schema"},
Heinz N. Gies's avatar
Heinz N. Gies committed
115 116 117
    {template, "\{\{build_dir\}\}/lib/fifo_lager/priv/lager.schema", "share/schema/05-lager.schema"},
    {template, "\{\{build_dir\}\}/lib/otters/priv/otters.schema", "share/schema/06-otters.schema"},
    {template, "schema/erlang_vm.schema", "share/schema/99-vm.schema"}
Heinz N. Gies's avatar
Heinz N. Gies committed
118
   ]}]}.