diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar.app.src | 4 | ||||
-rw-r--r-- | src/rebar_prv_test_deps.erl | 17 |
2 files changed, 12 insertions, 9 deletions
diff --git a/src/rebar.app.src b/src/rebar.app.src index e7cbcd1..28c683c 100644 --- a/src/rebar.app.src +++ b/src/rebar.app.src @@ -25,7 +25,6 @@ rebar_prv_deps, rebar_prv_do, rebar_prv_lock, - rebar_prv_test_deps, rebar_prv_install_deps, rebar_prv_packages, rebar_erlydtl_compiler, @@ -38,6 +37,7 @@ rebar_prv_upgrade, rebar_prv_release, rebar_prv_version, - rebar_prv_help]} + rebar_prv_help, + rebar_prv_test_deps]} ]} ]}. diff --git a/src/rebar_prv_test_deps.erl b/src/rebar_prv_test_deps.erl index 7dea0ab..b4c7250 100644 --- a/src/rebar_prv_test_deps.erl +++ b/src/rebar_prv_test_deps.erl @@ -16,10 +16,13 @@ -spec init(rebar_state:t()) -> {ok, rebar_state:t()}. init(State) -> + Providers = rebar_state:providers(State), + CompileProvider = providers:get_provider(compile, Providers), State1 = rebar_state:add_provider(State, providers:create([{name, ?PROVIDER}, {module, ?MODULE}, {bare, true}, {deps, ?DEPS}, + {hooks, {[], [CompileProvider]}}, {example, undefined}, {short_desc, "Install dependencies needed only for testing."}, {desc, ""}, @@ -38,13 +41,13 @@ do(State) -> case rebar_topo:sort_apps(ProjectApps1++AllDeps) of {ok, Sort} -> - ToBuild = lists:dropwhile(fun rebar_app_info:valid/1, Sort), - lists:foreach(fun(AppInfo) -> - AppDir = rebar_app_info:dir(AppInfo), - C = rebar_config:consult(AppDir), - S = rebar_state:new(State1, C, AppDir), - rebar_prv_compile:build(S, AppInfo) - end, ToBuild), + _ToBuild = lists:dropwhile(fun rebar_app_info:valid/1, Sort), + %% lists:foreach(fun(AppInfo) -> + %% AppDir = rebar_app_info:dir(AppInfo), + %% C = rebar_config:consult(AppDir), + %% S = rebar_state:new(State1, C, AppDir), + %% rebar_prv_compile:build(S, AppInfo) + %% end, ToBuild), {ok, State1}; {error, Error} -> {error, Error} |