diff --git a/src/rebar_config.erl b/src/rebar_config.erl index 461de5de..f2b80924 100644 --- a/src/rebar_config.erl +++ b/src/rebar_config.erl @@ -107,7 +107,14 @@ get_global(Config, Key, Default) -> error -> Default; {ok, Value} -> - Value + case string:to_lower(Value) of + "true" -> + true; + "false" -> + false; + _ -> + Value + end end. is_verbose(Config) -> diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index 5e4f482b..ae57420e 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -92,7 +92,7 @@ preprocess(Config, _) -> %% Also, if skip_deps=comma,separated,app,list, then only the given %% dependencies are skipped. NewConfig = case rebar_config:get_global(Config3, skip_deps, false) of - "true" -> + true -> lists:foldl( fun(#dep{dir = Dir}, C) -> rebar_config:set_skip_dir(C, Dir) @@ -106,7 +106,7 @@ preprocess(Config, _) -> false -> C end end, Config3, AvailableDeps); - _ -> + false -> Config3 end, diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index d39b1a21..bb00e335 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -39,6 +39,16 @@ %%
  • Reset OTP application environment variables
  • %% %% +%%
  • reset_after_each_eunit::boolean() - default = false. +%% If true, try to "reset" VM state to approximate state prior to +%% running each EUnit test in the contstructed list of tests: +%% +%%
  • %% %% The following Global options are supported: %%