From patchwork Thu Jun 22 03:32:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 779310 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wtSFH3yS2z9s8V for ; Thu, 22 Jun 2017 13:46:59 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VxsRuLy2"; dkim-atps=neutral Received: from localhost ([::1]:56916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNt57-0007X5-9B for incoming@patchwork.ozlabs.org; Wed, 21 Jun 2017 23:46:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNss2-0005ox-MN for qemu-devel@nongnu.org; Wed, 21 Jun 2017 23:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNss1-00057C-G2 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 23:33:26 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:35468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNss1-00056Y-BW for qemu-devel@nongnu.org; Wed, 21 Jun 2017 23:33:25 -0400 Received: by mail-qt0-x244.google.com with SMTP id w12so39138qta.2 for ; Wed, 21 Jun 2017 20:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M9YNwsw5PWorwq3l8dIMueLqFLjigewTGVbV3w2/j8A=; b=VxsRuLy2I1L9omtjb9Fk29tiFImVIm2hEUwqshHCHpXOWltCDr0spvJ9oDCR3n8moM HJCybuwOvQ6pjfWiyqkHx3/SxVwT/Ho/ryb2edxEl328XZ/vlMZdjKBun2Jkdjtt/qwW CvNl2rVcd4lUAggQPgWfki0cPHFFQU7pw8MiIbv06No8G6EHU3yevetwHq5q/ftW/1EF UPvWIDOoYX6mq9Xl9OBMgKUr3Ij7OHd2Rz5uljDjzDW8dczC1bNZuWyL7x8a3Dq3dXj7 bonkqVNzbCLuP6/9/CuIvnZeLjTG2ZOpswidJ6aL3uZG7W2jq3Tu1H2+No5JLPZwDo5a D11g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=M9YNwsw5PWorwq3l8dIMueLqFLjigewTGVbV3w2/j8A=; b=aF0f7UMj4tChW7AqjAvws4quQw6kiH5MAp+ss8jN0xYMNWIH+mZ/BRTbOjQ4HqkHE9 b55wycuDU+KFrVqX7fS6Ds4lMOxzHFMEUm5K8mRC94wPPvERSavbmY49OYCxuGbubHk4 IsxBDUFqTyl7Zok5NeIbYsRVIzlHRJVKu0GMIxsHse/1iSj2tChNtmgURgbBqKFitTSv 4xFrtkmEb0qSu8Gqo31hqlo49cBKkvx50KL4F0ULPNTSUcbYwZGdUpEpaI7K46M+8/nJ nTO9pz7BaWuqLy80xjSq90w07V0015ZmCI3crGAmL6Yl12Y8s2YgvAWKTyt2GpqG5KaA fxlQ== X-Gm-Message-State: AKS2vOz29EtWLoJxLrXoBZrMsNmFBhf+X1vx5SVLIwbxkpC0V7e+4LAG dA4Ocpmv8WHmdHDJZU0= X-Received: by 10.200.57.228 with SMTP id v91mr558025qte.116.1498102404752; Wed, 21 Jun 2017 20:33:24 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.226]) by smtp.gmail.com with ESMTPSA id g39sm247454qtc.12.2017.06.21.20.33.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 20:33:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , Peter Maydell Date: Thu, 22 Jun 2017 00:32:22 -0300 Message-Id: <20170622033231.19344-13-f4bug@amsat.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170622033231.19344-1-f4bug@amsat.org> References: <20170622033231.19344-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH v2 12/21] travis: build using all available cores X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Few improvement as of today, but if Travis release their limit on the opensource plan or upgrade their hardware, new builds will get some benefit. Restrict to as most 4 cores to respect Travis Open Source plan. Signed-off-by: Philippe Mathieu-Daudé --- .travis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 777914f759..a7512f3ab0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,14 @@ notifications: on_failure: always env: global: - - TEST_CMD="make check" + # jobs + # detects cores on the hosting hardware, rather than the VM (https://docs.travis-ci.com/user/languages/c#hints) + - VM_CORES="4" HW_CORES="$(getconf _NPROCESSORS_ONLN)" + # be kind with Travis free plan, restrict to at most 4 cores + - PARALLEL_JOBS="$(($(test ${HW_CORES} -gt ${VM_CORES} && echo ${VM_CORES} || echo ${HW_CORES}) + 1))" + - HOMEBREW_MAKE_JOBS="${PARALLEL_JOBS}" + # tests + - TEST_CMD="make -j${PARALLEL_JOBS} check" matrix: - CONFIG="" - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log" @@ -78,9 +85,11 @@ before_install: - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi - git submodule update --init --recursive before_script: + - echo "Using ${PARALLEL_JOBS} parallel jobs" - ./configure ${CONFIG} script: - - make -j3 && ${TEST_CMD} + - make -j${PARALLEL_JOBS} + - ${TEST_CMD} matrix: include: # Test with CLang for compile portability @@ -234,7 +243,7 @@ matrix: group: edge env: - COVERITY=1 - - COVERITY_BUILD_CMD="make -j3" + - COVERITY_BUILD_CMD="make -j${PARALLEL_JOBS}" - COVERITY_EMAIL=peter.maydell@linaro.org # This 'secure' setting sets COVERITY_TOKEN= # and was created with travis encrypt -r qemu/qemu COVERITY_TOKEN=...