<div dir="ltr">Hi Fred,<div>Thank you. Unfortunately I'm receiving a `ERROR: invalid_option "-r"`. Using the latest rebar (cd55176009df794f506771fd574de9303ff2a42e on master).</div><div><br></div><div>I'm already using the `<span style="font-size:12.8000001907349px">skip_deps=true` option.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Any ideas?</span></div>















</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 3:53 PM, Fred Hebert <span dir="ltr"><<a href="mailto:mononcqc@ferd.ca" target="_blank">mononcqc@ferd.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/30, Roberto Ostinelli wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear List,<br>
I'm trying to use CT on Travis. Test run fine when run locally. I start<br>
them from the project root, and use rebar ct command.<br>
<br>
However, when I run then in Travis I get:<br>
<br>
WARN:  'ct' command does not apply to directory<br>
/home/travis/build/myrepo/myapp<br>
<br>
</blockquote>
<br></span>
This is a problem with rebar 2.x's model versus the directory structure you have. The one you have described here:<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-- myproject<br>
  rebar.config<br>
  |-- apps<br>
      |-- myapp<br>
          |-- src<br>
          |-- test<br>
      rebar.config<br>
  |-- deps<br>
      |-- dep1<br>
      |-- dep2<br>
  |-- ...<br>
<br>
</blockquote>
<br></span>
Works for a release, but rebar 2.x more or less expects OTP applications everywhere. Anything else and you need special configurations or switches.<br>
<br>
In the case of ct for that one, you have to run `rebar ct -r' to run it recursively in all directories it finds, and then add `skip_deps=true' to avoid running it on all your dependencies. Final command is:<br>
<br>
   rebar ct -r skip_deps=true<br>
<br>
You'll still see a warning printed (when rebar looks for a `test/' directory at the root) but then it'll run the tests fine.<br>
<br>
Rebar3 should take care of this and work fine on the first run, as we changed the model it uses to figure out structure of both OTP apps and releases and takes an app-based structure.<br>
<br>
Regards,<br>
Fred.<br>
</blockquote></div><br></div>