qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/4] .travis.yml: pre-seed sub-modules for speed


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 3/4] .travis.yml: pre-seed sub-modules for speed
Date: Tue, 23 Sep 2014 17:37:38 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.1.1


On 23.09.14 16:50, Alex Bennée wrote:
> 
> Alexander Graf writes:
> 
>> On 15.09.14 18:48, Alex Bennée wrote:
>>> A significant portion of the build time is spent initialising all the
>>> sub-modules we use in the source tree. Often this is almost as long as
>>> the build itself. By pre-seeding the .git/modules tree this will
>>> hopefully improve things.
>>>
>>> Signed-off-by: Alex Bennée <address@hidden>
>>>
>>> diff --git a/.travis.yml b/.travis.yml
>>> index f113339..8df02a4 100644
>>> --- a/.travis.yml
>>> +++ b/.travis.yml
>>> @@ -37,7 +37,12 @@ env:
>>>      - TARGETS=unicore32-softmmu,unicore32-linux-user
>>>      # Group remaining softmmu only targets into one build
>>>      - 
>>> TARGETS=lm32-softmmu,moxie-softmmu,tricore-softmmu,xtensa-softmmu,xtensaeb-softmmu
>>> +git:
>>> +  # we want to do this ourselves
>>> +  submodules: false
>>>  before_install:
>>> +  - wget 
>>> http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz
>>> +  - tar -xvf qemu-submodule-git-seed.tar.xz
>>
>> wget -O - | tar?
> 
> Sure I can do this.
> 
>>>    - git submodule update --init --recursive
>>
>> Doesn't this overwrite the code you just downloaded?
> 
> It didn't in my testing. However I need to do the "--init" to ensure all
> the modules are correctly checked out. When manually deleting one of the
> packs in my testing git did the right thing and fetched the missing pack
> data. Once the submodules move forward I'll double check the incremental
> update works as well.

Cool, git is pretty smart then :). Nice.


Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]