From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWRQg-00058L-DV for qemu-devel@nongnu.org; Tue, 23 Sep 2014 10:51:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWRQb-0003r1-Iy for qemu-devel@nongnu.org; Tue, 23 Sep 2014 10:50:58 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:44243 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWRQb-0003qc-DR for qemu-devel@nongnu.org; Tue, 23 Sep 2014 10:50:53 -0400 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> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <54214D56.1090809@suse.de> Date: Tue, 23 Sep 2014 15:50:46 +0100 Message-ID: <8738bi2xx5.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Alexander Graf Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org 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 >> >> 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. > > > Alex > >> - sudo apt-get update -qq >> - sudo apt-get install -qq ${CORE_PKGS} ${NET_PKGS} ${GUI_PKGS} ${EXTRA_PKGS} >> -- Alex Bennée