diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2013-04-22 13:39:42 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2013-04-22 13:39:42 -0600 |
commit | 6bbd79044d9192edcc16aec8cbabc755ae7a2c91 (patch) | |
tree | 5c124c71819bac14a8ed0b95621808bcc0d634d6 /inttest/tdeps1 | |
parent | c1925d0de7d2339d54788e55f66832aeb77f3aad (diff) |
Further investigation into travis CI issues
Diffstat (limited to 'inttest/tdeps1')
-rw-r--r-- | inttest/tdeps1/tdeps1_rt.erl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/inttest/tdeps1/tdeps1_rt.erl b/inttest/tdeps1/tdeps1_rt.erl index b8283f2..de8e721 100644 --- a/inttest/tdeps1/tdeps1_rt.erl +++ b/inttest/tdeps1/tdeps1_rt.erl @@ -23,12 +23,21 @@ 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 git repos so that dependencies pull %% properly - GitCmd = "/bin/sh -c \"git init && git add -A && git commit --author 'tdeps <tdeps@example.com>' -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 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", []), |