Current section
Files
Jump to
Current section
Files
rebar.config
%% -*- mode: erlang; indent-tabs-mode: nil -*-
{erl_opts, [debug_info]}.
%% IMPORTANT! Versions of proper are calculated dynamically in the 'rebar.config.script' file, at the end;
%% DO NOT set/change the proper version here!
{profiles, [{test, [{deps, [proper]},
{plugins, [{rebar3_proper, {git, "https://github.com/ferd/rebar3_proper", {tag, "0.12.1"}}}]},
{src_dirs, ["src", "test"]}]},
{dialyzer, []}]}.
%% XXX Commenting this out due to weird recursion issues with rebar3_lfe ...
%% Do we remember why we need this? I _thought_ it was to help with
%% publishing LFE to hex.pm; once we remember, we should add a code
%% for future reference.
%% This issue is tracked here:
%% * https://github.com/lfe/lfe/issues/461
%% Long term solution being tracked here:
%% * https://github.com/lfe/lfe/issues/460
%% {plugins, [
%% {rebar3_lfe, "0.3.1"}
%% ]}.
{pre_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", ct,
"bin/lfescript bin/lfec"
" -o $REBAR_DEPS_DIR/lfe/test"
" test/*_SUITE.lfe"},
{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", eunit,
"bin/lfescript bin/lfec"
" -o $REBAR_DEPS_DIR/lfe/ebin"
" test/clj-tests.lfe test/maps-tests.lfe"},
%% TODO: Test this on a win32 box
%% {"win32", ct,
%% "bin/lfescript bin/lfec -o $REBAR_DEPS_DIR/lfe/test test/*_SUITE.lfe"}
{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", app_compile,
"bin/lfescript bin/lfec -o $REBAR_DEPS_DIR/lfe/ebin src/*.lfe"}
%% TODO: equivalent win32 hook
]}.