瀏覽代碼

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.

David Reid 15 年之前
父節點
當前提交
b85c0b4515
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      src/rebar_deps.erl

+ 7
- 1
src/rebar_deps.erl 查看文件

@ -50,7 +50,13 @@ preprocess(Config, _) ->
%% Walk all the deps and make sure they are available on the code path, %% Walk all the deps and make sure they are available on the code path,
%% if the application we're interested in actually exists there. %% if the application we're interested in actually exists there.
ok = update_deps_code_path(Deps), 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} -> {'EXIT', Reason} ->
?ABORT("Error while processing dependencies: ~p\n", [Reason]) ?ABORT("Error while processing dependencies: ~p\n", [Reason])
end. end.

Loading…
取消
儲存