From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWSA3-0001WM-Oi for qemu-devel@nongnu.org; Tue, 23 Sep 2014 11:37:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWS9x-0007i2-Ru for qemu-devel@nongnu.org; Tue, 23 Sep 2014 11:37:51 -0400 Received: from cantor2.suse.de ([195.135.220.15]:50635 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWS9x-0007hg-Es for qemu-devel@nongnu.org; Tue, 23 Sep 2014 11:37:45 -0400 Message-ID: <542193C2.8020208@suse.de> Date: Tue, 23 Sep 2014 17:37:38 +0200 From: Alexander Graf MIME-Version: 1.0 References: <1410799691-1226-1-git-send-email-alex.bennee@linaro.org> <1410799691-1226-4-git-send-email-alex.bennee@linaro.org> <54214D56.1090809@suse.de> <8738bi2xx5.fsf@linaro.org> In-Reply-To: <8738bi2xx5.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 3/4] .travis.yml: pre-seed sub-modules for speed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QWxleCBCZW5uw6ll?= Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org On 23.09.14 16:50, Alex Benn=C3=A9e wrote: >=20 > Alexander Graf writes: >=20 >> On 15.09.14 18:48, Alex Benn=C3=A9e 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 a= s >>> the build itself. By pre-seeding the .git/modules tree this will >>> hopefully improve things. >>> >>> Signed-off-by: Alex Benn=C3=A9e >>> >>> diff --git a/.travis.yml b/.travis.yml >>> index f113339..8df02a4 100644 >>> --- a/.travis.yml >>> +++ b/.travis.yml >>> @@ -37,7 +37,12 @@ env: >>> - TARGETS=3Dunicore32-softmmu,unicore32-linux-user >>> # Group remaining softmmu only targets into one build >>> - TARGETS=3Dlm32-softmmu,moxie-softmmu,tricore-softmmu,xtensa-so= ftmmu,xtensaeb-softmmu >>> +git: >>> + # we want to do this ourselves >>> + submodules: false >>> before_install: >>> + - wget http://people.linaro.org/~alex.bennee/qemu-submodule-git-se= ed.tar.xz >>> + - tar -xvf qemu-submodule-git-seed.tar.xz >> >> wget -O - | tar? >=20 > Sure I can do this. >=20 >>> - git submodule update --init --recursive >> >> Doesn't this overwrite the code you just downloaded? >=20 > It didn't in my testing. However I need to do the "--init" to ensure al= l > the modules are correctly checked out. When manually deleting one of th= e > packs in my testing git did the right thing and fetched the missing pac= k > data. Once the submodules move forward I'll double check the incrementa= l > update works as well. Cool, git is pretty smart then :). Nice. Alex