Parcourir la source

Fix up programmatic interface to rebar3

Now supports arbitrary commands
pull/70/head
Fred Hebert il y a 10 ans
Parent
révision
73676c80b0
3 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. +3
    -3
      src/rebar3.erl
  2. +1
    -1
      test/rebar_compile_SUITE.erl
  3. +1
    -1
      test/rebar_deps_SUITE.erl

+ 3
- 3
src/rebar3.erl Voir le fichier

@ -71,10 +71,10 @@ main(Args) ->
end.
%% Erlang-API entry point
run(BaseState, Command) ->
run(BaseState, Commands) ->
_ = application:load(rebar),
BaseState1 = rebar_state:set(BaseState, task, Command),
run_aux(BaseState1, [], [Commandspan>]).
BaseState1 = rebar_state:set(BaseState, task, Commands),
run_aux(BaseState1, [], Commands).
%% ====================================================================
%% Internal functions

+ 1
- 1
test/rebar_compile_SUITE.erl Voir le fichier

@ -33,5 +33,5 @@ build_basic_app(Config) ->
Vsn = rebar_test_utils:create_random_vsn(),
rebar_test_utils:create_app(AppDir, Name, Vsn, [kernel, stdlib]),
rebar_test_utils:run_and_check(Config, [], "compile", {ok, [{app, Name}]}).
rebar_test_utils:run_and_check(Config, [], ["compile"], {ok, [{app, Name}]}).

+ 1
- 1
test/rebar_deps_SUITE.erl Voir le fichier

@ -195,7 +195,7 @@ circular_skip(Config) -> run(Config).
run(Config) ->
{ok, RebarConfig} = file:consult(?config(rebarconfig, Config)),
rebar_test_utils:run_and_check(
Config, RebarConfig, "install_deps", ?config(expect, Config)
Config, RebarConfig, ["install_deps"], ?config(expect, Config)
),
check_warnings(warning_calls(), ?config(warnings, Config), ?config(deps_type, Config)).

Chargement…
Annuler
Enregistrer