Skip to content

Commit

Permalink
Keep compile recursive and update the tests to not pass -r to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmorrow committed Mar 11, 2014
1 parent 9bb677e commit 415d872
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ebin/rebar.app
Expand Up @@ -92,9 +92,10 @@
]}
]},
{recursive_cmds, [
'get-deps',
'check-deps',
'compile',
'delete-deps',
'get-deps',
'list-deps',
'update-deps'
]}
Expand Down
2 changes: 1 addition & 1 deletion inttest/depplugins/depplugins_rt.erl
Expand Up @@ -39,7 +39,7 @@ files() ->
].

run(_Dir) ->
?assertMatch({ok, _}, retest_sh:run("./rebar -r compile", [])),
?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])),

?assertEqual(true, filelib:is_regular("base_dir_cwd_pre.compile")),

Expand Down
2 changes: 1 addition & 1 deletion inttest/tdeps1/tdeps1_rt.erl
Expand Up @@ -42,7 +42,7 @@ run(_Dir) ->
apply_cmds(GitCmds, [{dir, "repo/c"}]),

{ok, _} = retest_sh:run("./rebar get-deps", []),
{ok, _} = retest_sh:run("./rebar -r compile", []),
{ok, _} = retest_sh:run("./rebar compile", []),

true = filelib:is_regular("ebin/a.beam"),
ok.
Expand Down
2 changes: 1 addition & 1 deletion inttest/tdeps2/tdeps2_rt.erl
Expand Up @@ -50,7 +50,7 @@ run(_Dir) ->
ok = apply_cmds(GitCmds, [{dir, "repo/c"}]),

{ok, _} = retest_sh:run("./rebar -v get-deps", []),
{ok, _} = retest_sh:run("./rebar -v -r compile", []),
{ok, _} = retest_sh:run("./rebar -v compile", []),
ok.

%%
Expand Down
2 changes: 1 addition & 1 deletion inttest/tdeps_update/tdeps_update_rt.erl
Expand Up @@ -123,7 +123,7 @@ run(_Dir) ->
ok = apply_cmds(GitCmds++FCmds, [{dir, "repo/f"}]),

{ok, _} = retest_sh:run("./rebar -v get-deps", []),
{ok, _} = retest_sh:run("./rebar -v -r compile", []),
{ok, _} = retest_sh:run("./rebar -v compile", []),
os:cmd("cp a2.rebar.config apps/a1/rebar.config"),
{ok, _} = retest_sh:run("./rebar -v update-deps", []),
{ok, _} = retest_sh:run("./rebar -v compile", []),
Expand Down

0 comments on commit 415d872

Please sign in to comment.