-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
161 lines (126 loc) · 5.67 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
%%
%% %CopyrightBegin%
%%
%% Copyright Neeraj Sharma <neeraj.sharma@alumni.iitg.ernet.in> 2017.
%% All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
{require_min_otp_vsn, "20.0"}.
{erl_opts, [debug_info, warn_unused_vars, warn_shadow_vars, warn_unused_import,
warnings_as_errors, {parse_transform, lager_transform},
{platform_define, "^(R|1|20)", 'FUN_STACKTRACE'},
{lager_extra_sinks, [req_logs]}]}.
{deps, [
{'meck', {
git, "https://github.com/neeraj9/meck", "dev-no-get_stacktrace"}},
{lager, {git, "https://github.com/erlang-lager/lager", {branch, "master"}}},
{'cowboy', {
git, "git://github.com/ninenines/cowboy.git", {tag, "master"}}},
%% use jiffy as well
{jiffy, {git, "https://github.com/davisp/jiffy.git", {tag, "0.14.13"}}},
{'jsx', {
git, "https://github.com/talentdeficit/jsx.git", {tag, "v2.8.0"}}},
%% debug tools
recon,
%% metrics
{folsom_cowboy, {git, "https://github.com/neeraj9/folsom_cowboy.git", {branch, "dev-cowboy2"}}},
%% dynamic gen_server pool
{palma, {git, "https://github.com/neeraj9/palma", {branch, "fix-duplicate-supervisor2"}}},
%% a data driven data structure manipulation library for erlang.
%% Conveniently manipulate Erlang maps
{dotto, {
git, "https://github.com/marianoguerra/dotto", {branch, "master"}}},
%% erlcron
{erlcron, {
git, "https://github.com/neeraj9/erlcron", {branch, "dev-lib"}}},
%% In-Memory Cache
{cache, {git, "https://github.com/fogfish/cache", {branch, "master"}}},
%% lhttpc (required by erlcloud) patched for Erlang-20
{lhttpc, {git, "https://github.com/neeraj9/lhttpc", {branch, "dev-erl20"}}},
{nested, {git, "https://github.com/odo/nested.git", {branch, "master"}}},
%% Secure password hashing
%% https://en.wikipedia.org/wiki/PBKDF2
{pbkdf2, {git, "https://github.com/basho/erlang-pbkdf2.git", {tag, "2.0.0"}}},
%% Json Web Token (for authentication)
{jwt, {git, "https://github.com/neeraj9/jwt.git", {branch, "master"}}},
%% erlware with get_stacktrace/0 fix
{erlware, {git, "https://github.com/erlware/erlware_commons", {branch, "master"}}},
%% datetime formatter and timezone util
{qdate, {git, "https://github.com/choptastic/qdate.git", {branch, "master"}}},
%% eiconv is required by gen_smtp
{eiconv, {git, "https://github.com/zotonic/eiconv", {branch, "master"}}},
{gen_smtp, {git, "https://github.com/Vagabond/gen_smtp", {branch, "master"}}},
%% latch on to opentracing
{otter, {git, "https://github.com/Bluehouse-Technology/otter", {branch, "master"}}},
%% alarm manager (more functionality than Erlang alarm manager).
{elarm, {git, "https://github.com/esl/elarm", {branch, "master"}}},
%% simple diff library
{tdiff, {git, "https://github.com/tomas-abrahamsson/tdiff", {branch, "master"}}},
%% oauth2 client
{simple_oauth2, {git, "https://github.com/neeraj9/simple_oauth2", {branch, "master"}}},
{erlexec, {git, "https://github.com/neeraj9/erlexec", {branch, "master"}}},
%% embed graph database for data, which might just replace
%% eleveldb in the future
{egraph, {git, "https://github.com/neeraj9/egraphdb", {branch, "master"}}}
]}.
{edoc_opts, [
{new, true},
{source_path, ["src/", "include/", "models/", "handlers/", "backends/"]}
]}.
{profiles, [
{prod, [
[{relx, [
{dev_mode, false},
{include_src, false},
{include_erts, true}
]}]
]},
{test, [
{deps, [proper, meck]}
]}
]}.
{alias, [
{check, [xrref, dialyzer, {proper, "-c"}, {cover, "-v"}]}
]}.
%% property based testing
{proper_opts, [{numtests, 100}]}.
{relx, [
{release, {beamparticle, "0.2.0"},
[beamparticle]},
%% _build/rel/myrel/lib are symlinks to _build/lib
{dev_mode, true},
%% Do not include Erlang runtime system and use system default
{include_erts, false},
%% provides a few more ways of starting and connecting to your release
{extended_start_script, true},
{sys_config, "config/sys.config"},
{vm_args, "config/vm.args"}
]}.
{plugins, [
rebar_alias,
rebar3_proper,
{rebar_raw_resource,
{git, "git://github.com/basho/rebar_raw_resource.git",
{branch, "master"}}}
]}.
{xref_checks, [
undefined_function_calls,undefined_functions,locals_not_used,
exports_not_used,deprecated_function_calls, deprecated_functions
]}.
%% Paths for structure
{src_dirs, ["include", "src", "models", "handlers", "backends"]}.
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*-
%% ex: ts=2 sw=2 ft=erlang et