mirror of
https://github.com/correl/rebar.git
synced 2024-12-24 03:00:16 +00:00
Keep compile recursive and update the tests to not pass -r to compile
This commit is contained in:
parent
9bb677ed99
commit
415d872730
5 changed files with 6 additions and 5 deletions
|
@ -92,9 +92,10 @@
|
|||
]}
|
||||
]},
|
||||
{recursive_cmds, [
|
||||
'get-deps',
|
||||
'check-deps',
|
||||
'compile',
|
||||
'delete-deps',
|
||||
'get-deps',
|
||||
'list-deps',
|
||||
'update-deps'
|
||||
]}
|
||||
|
|
|
@ -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")),
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
||||
%%
|
||||
|
|
|
@ -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", []),
|
||||
|
|
Loading…
Reference in a new issue