public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
To: Trevor Woerner <twoerner@gmail.com>
Cc: "Jasmin J." <jasmin@anw.at>, crossgcc <crossgcc@sourceware.org>
Subject: Re: [RFC] Refactor autoconf options and build scripts
Date: Tue, 15 Sep 2015 15:22:00 -0000	[thread overview]
Message-ID: <CAAdc0hyUkU5mgyYpGv94fF9jTF5cHHrccjTRGUDs2kG1Z-96PA@mail.gmail.com> (raw)
In-Reply-To: <55F82DB2.80306@gmail.com>

Well, here is the first serial build result:
https://travis-ci.org/jmlemetayer/crosstool-ng/builds/80435130

Conclusion, doing serial build is space consuming ... :-) So we have
to add some `rm` between each builds.

I also tried to do parallel builds:
https://travis-ci.org/jmlemetayer/crosstool-ng/builds/80447510

Travis CI handle this very well and as you can see it is easy to see
which sample is good and which one is not. It is also more easy to
read the log on failure.

Personally, I think parallel builds could be a good option.

Regards,
JML

2015-09-15 16:39 GMT+02:00 Trevor Woerner <twoerner@gmail.com>:
> On 09/15/15 10:21, Jean-Marie Lemetayer wrote:
>> To continue the Jasmin work about Travis-CI, I have copy paste the
>> Jasmin `.travis.yml` on my fork and add a script line to build all
>> samples this way:
>>
>>     for SAMPLE in $(./ct-ng list-samples 2>/dev/null | sed -n
>> 's/^\[...\] *\(.*\)$/\1/p'); do ./ct-ng $SAMPLE; ./ct-ng build; done
>>
>> It seems to be working for now: https://travis-ci.org/jmlemetayer/crosstool-ng
>>
>> But going further into the Travis-CI documentation I see that the
>> build timeouts after 50 minutes:
>> http://docs.travis-ci.com/user/customizing-the-build/#Build-Timeouts
>>
>> So it seems not to be the good strategy as building all samples
>> serially will take more than 50 minutes. But we could run parallel
>> builds using matrix build:
>> http://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
>>
>> The only difference is that we can't run build dynamically (using
>> `list-samples`) and we have to say which samples we want to build for
>> the continuous integration.
>
> Maybe you could rework your "for SAMPLE in..." script to run each sample
> in a subprocess then wait for the results?
>
> http://stackoverflow.com/questions/356100/how-to-wait-in-bash-for-several-subprocesses-to-finish-and-return-exit-code-0
>
> That way the number of sample is still generated dynamically, the
> results can be collected to show if any fail (or if they all succeed),
> and the whole build (hopefully) still takes less than 50 minutes?

--
For unsubscribe information see http://sourceware.org/lists.html#faq

  reply	other threads:[~2015-09-15 15:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-08 17:32 Bryan Hundven
2015-09-08 23:42 ` Jasmin J.
2015-09-12 18:03 ` Thomas Petazzoni
2015-09-12 21:23   ` Bryan Hundven
2015-09-13 14:13     ` Trevor Woerner
2015-09-13 23:19     ` Jasmin J.
2015-09-13 23:35       ` Jasmin J.
2015-09-14  0:31         ` Jasmin J.
2015-09-15 14:21           ` Jean-Marie Lemetayer
2015-09-15 14:39             ` Trevor Woerner
2015-09-15 15:22               ` Jean-Marie Lemetayer [this message]
2015-09-15 18:30                 ` Jasmin J.
2015-09-15 20:38                   ` Jasmin J.
2015-09-15 20:49                   ` Bryan Hundven
2015-09-15 22:46                     ` Jasmin J.
2015-09-15 23:21                       ` Bryan Hundven
2015-09-16 11:17                         ` Jasmin J.
2015-09-16 11:45                         ` Jean-Marie Lemetayer
2015-09-16 11:47                           ` Jean-Marie Lemetayer
2015-09-16 13:20                             ` Jasmin J.
2015-09-16 13:47                               ` Jean-Marie Lemetayer
2015-09-16 14:50                                 ` Jasmin J.
2015-09-21 22:55                                   ` Jasmin J.
2015-09-22  8:17                                     ` Jean-Marie Lemetayer
2015-09-22 21:18                                       ` Bryan Hundven
2015-09-13 22:59   ` Jasmin J.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAdc0hyUkU5mgyYpGv94fF9jTF5cHHrccjTRGUDs2kG1Z-96PA@mail.gmail.com \
    --to=jeanmarie.lemetayer@gmail.com \
    --cc=crossgcc@sourceware.org \
    --cc=jasmin@anw.at \
    --cc=twoerner@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).