[erlang-questions] Rebar to run CT
Roberto Ostinelli
roberto@REDACTED
Thu Apr 30 15:59:30 CEST 2015
Hi Fred,
Thank you. Unfortunately I'm receiving a `ERROR: invalid_option "-r"`.
Using the latest rebar (cd55176009df794f506771fd574de9303ff2a42e on master).
I'm already using the `skip_deps=true` option.
Any ideas?
On Thu, Apr 30, 2015 at 3:53 PM, Fred Hebert <mononcqc@REDACTED> wrote:
> On 04/30, Roberto Ostinelli wrote:
>
>> Dear List,
>> I'm trying to use CT on Travis. Test run fine when run locally. I start
>> them from the project root, and use rebar ct command.
>>
>> However, when I run then in Travis I get:
>>
>> WARN: 'ct' command does not apply to directory
>> /home/travis/build/myrepo/myapp
>>
>>
> This is a problem with rebar 2.x's model versus the directory structure
> you have. The one you have described here:
>
>
>> -- myproject
>> rebar.config
>> |-- apps
>> |-- myapp
>> |-- src
>> |-- test
>> rebar.config
>> |-- deps
>> |-- dep1
>> |-- dep2
>> |-- ...
>>
>>
> Works for a release, but rebar 2.x more or less expects OTP applications
> everywhere. Anything else and you need special configurations or switches.
>
> 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:
>
> rebar ct -r skip_deps=true
>
> 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.
>
> 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.
>
> Regards,
> Fred.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150430/a4f53848/attachment.htm>
More information about the erlang-questions
mailing list