mirror of
https://github.com/correl/rebar.git
synced 2024-11-15 03:00:18 +00:00
Additional travisci fixes
This commit is contained in:
parent
a3ce71e381
commit
9ad0a4a185
1 changed files with 15 additions and 4 deletions
|
@ -31,12 +31,23 @@ files() ->
|
|||
{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) ->
|
||||
%% Initialize the b/c apps as mercurial repos so that dependencies pull
|
||||
%% Initialize the b/c apps as git repos so that dependencies pull
|
||||
%% properly
|
||||
GitCmd = "/bin/sh -c \"git init && git add -A && git commit -a -m 'Initial commit'\"",
|
||||
{ok, _} = retest_sh:run(GitCmd, [{dir, "repo/b"}]),
|
||||
{ok, _} = retest_sh:run(GitCmd, [{dir, "repo/c"}]),
|
||||
GitCmds = ["git init",
|
||||
"git add -A",
|
||||
"git config user.email 'tdeps@example.com'",
|
||||
"git config user.name 'tdeps'",
|
||||
"git commit -a -m 'Initial Commit'"],
|
||||
ok = apply_cmds(GitCmds, [{dir, "repo/b"}]),
|
||||
ok = apply_cmds(GitCmds, [{dir, "repo/c"}]),
|
||||
|
||||
{ok, _} = retest_sh:run("./rebar -v get-deps compile", []),
|
||||
ok.
|
||||
|
|
Loading…
Reference in a new issue