summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2010-04-29 14:40:37 -0700
committerDavid Reid <dreid@dreid.org>2010-04-29 14:40:37 -0700
commitb85c0b4515d101f8196a088ce30a0312660d884a (patch)
tree9ec48912af4acf331921a05b4dcb608a6f8af9eb /src
parentbf3dfcb34bbcb87c8764ad3d82db817298af7853 (diff)
Add a global config option skip_deps which when present will cause dependencies not to be added to the list of directories to process, useful for ./rebar skip_deps=true eunit so that you don't run the tests of every dependency.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_deps.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl
index ec74e27..46d7657 100644
--- a/src/rebar_deps.erl
+++ b/src/rebar_deps.erl
@@ -50,7 +50,13 @@ preprocess(Config, _) ->
%% Walk all the deps and make sure they are available on the code path,
%% if the application we're interested in actually exists there.
ok = update_deps_code_path(Deps),
- {ok, Config2, [Dir || {Dir, _, _, _} <- Deps]};
+ DepDirs = case rebar_config:get_global(skip_deps, false) of
+ false ->
+ [Dir || {Dir, _, _, _} <- Deps];
+ _Specified ->
+ []
+ end,
+ {ok, Config2, DepDirs};
{'EXIT', Reason} ->
?ABORT("Error while processing dependencies: ~p\n", [Reason])
end.