-
Notifications
You must be signed in to change notification settings - Fork 11
/
rebar.config
160 lines (136 loc) · 3.82 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
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
%
% (Partly) Auto-generated by https://github.com/Pouriya-Jahanbakhsh/estuff
{ deps , [
grisp ,
{epmd , {git , "https://github.com/erlang/epmd" , {ref , "4d1a59"}}} ,
lasp
]}.
%% == Erlang ==
{erl_opts , [
debug_info
]}.
%% == GRiSP ==
{ grisp , [
{otp , [
{version , "22.0"}
]} ,
% ========================================
% Necessary for building OTP from source :
% ========================================
% {build , [
% {toolchain , [
% {directory,"/Path/to/GRiSP/grisp-software/rtems-install/rtems/5"}]}
% ]} ,
{deploy , [
% ==========
% Mac OS X :
% ==========
{pre_script, "rm -rf /Volumes/GRISP/*"},
{destination, "/Volumes/GRISP"},
{post_script, "diskutil unmount /Volumes/GRISP"}
% ==========
% Linux :
% ==========
% {pre_script , "rm -rf /media/user/GRISP/*"} ,
% {destination , "/media/user/GRISP"} ,
% {post_script , "umount /media/user/GRISP"}
]}
]}.
%% == Shell ==
{ shell , [
{apps , [achlys]} ,
{config , "./config/test.config.src"}
% from https://github.com/erlang/rebar3/blob/772503c749f487d8fda8fb6835fdb6dada9a04f3/src/rebar_prv_shell.erl#L91
%
% {env_file, undefined, "env-file", string,
% "Path to file of os environment variables to setup "
% "before expanding vars in config files."},
%
% {env_file, "./default.env"}
]}.
%% == Relx ==
{ relx , [
%%------------------------------------------------------------------------------
{release , {achlys , "0.4.1"} , [
grisp ,
{epmd , none} ,
partisan ,
lasp ,
achlys
]} ,
%%------------------------------------------------------------------------------
{dev_mode , false} ,
{generate_start_script , true} ,
{extended_start_script , true} ,
{sys_config , "./config/sys.config"} ,
{vm_args , "./config/vm.args"}
%%------------------------------------------------------------------------------
% https://github.com/erlang/rebar3/issues/1808, by Fred Hebert
% Don't include source files
% {include_src, false} ,
% Makes code harder to debug, but drops
% debug data and source info from the final beam
% {debug_info, strip} ,
% List of apps that are included
% but you don't want (maybe wx or somehting?)
% {exclude_apps, [
% ]} ,
% Drop modules you don't need in apps you depend on
% {exclude_modules, [
% ]}
]}.
{ profiles , [
{test , [
{deps , [
grisp_emulation
]} ,
{dev_mode , true} ,
{erl_opts , [
nowarn_export_all ,
debug_info
]} ,
{relx , [
{sys_config_src , "./config/test.config.src"} ,
{release , {achlys , "0.4.1"} , [
grisp ,
{epmd , none} ,
partisan ,
lasp ,
achlys
]}
]}
]}
]}.
{cover_enabled, true}.
{cover_export_enabled, true}.
%% == Dialyzer ==
{ dialyzer , [
{warnings , [underspecs
, no_return
, unmatched_returns
, error_handling]} ,
{plt_prefix , "achlys"} ,
{plt_apps , top_level_deps} ,
{plt_extra_apps , []}
]}.
%% == EDoc ==
{ edoc_opts , [
{report_missing_types , true} ,
{source_path , ["src"]} ,
{report_missing_types , true} ,
{todo , true} ,
{preprocess , true} ,
{packages , false} ,
{subpackages , false}
]}.
%% == Xref ==
{ xref , [
{xref_warnings , true} ,
{xref_extra_paths , []} ,
{xref_checks , [undefined_functions
, deprecated_function_calls
, undefined_function_calls
, deprecated_functions]}
]}.