mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Further investigation into travis CI issues
This commit is contained in:
parent
c1925d0de7
commit
6bbd79044d
1 changed files with 12 additions and 3 deletions
|
@ -23,12 +23,21 @@ files() ->
|
||||||
{copy, "c.hrl", "repo/c/include/c.hrl"}
|
{copy, "c.hrl", "repo/c/include/c.hrl"}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
apply_cmds([], _Params) ->
|
||||||
|
ok;
|
||||||
|
apply_cmds([Cmd | Rest], Params) ->
|
||||||
|
io:format("Running: ~s (~p)\n", [Cmd, Params]),
|
||||||
|
{ok, _} = retest_sh:run(Cmd, Params),
|
||||||
|
apply_cmds(Rest, Params).
|
||||||
|
|
||||||
run(_Dir) ->
|
run(_Dir) ->
|
||||||
%% Initialize the b/c apps as git repos so that dependencies pull
|
%% Initialize the b/c apps as git repos so that dependencies pull
|
||||||
%% properly
|
%% properly
|
||||||
GitCmd = "/bin/sh -c \"git init && git add -A && git commit --author 'tdeps <tdeps@example.com>' -a -m 'Initial commit'\"",
|
GitCmds = ["git init",
|
||||||
{ok, _} = retest_sh:run(GitCmd, [{dir, "repo/b"}]),
|
"git add -A",
|
||||||
{ok, _} = retest_sh:run(GitCmd, [{dir, "repo/c"}]),
|
"git commit -a -m 'Initial Commit'"],
|
||||||
|
apply_cmds(GitCmds, [{dir, "repo/b"}]),
|
||||||
|
apply_cmds(GitCmds, [{dir, "repo/c"}]),
|
||||||
|
|
||||||
{ok, _} = retest_sh:run("./rebar get-deps compile", []),
|
{ok, _} = retest_sh:run("./rebar get-deps compile", []),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue