From patchwork Thu Jun 22 03:32:23 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: 779313 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 3wtSGl0X3vz9s7M for ; Thu, 22 Jun 2017 13:48:15 +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="cswHX/Nl"; dkim-atps=neutral Received: from localhost ([::1]:56918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNt6K-00089d-Q8 for incoming@patchwork.ozlabs.org; Wed, 21 Jun 2017 23:48:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNss4-0005yT-RA 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 1dNss3-0005AV-Pl for qemu-devel@nongnu.org; Wed, 21 Jun 2017 23:33:28 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:34661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNss3-0005AQ-L0 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 23:33:27 -0400 Received: by mail-qk0-x244.google.com with SMTP id d14so612224qkb.1 for ; Wed, 21 Jun 2017 20:33:27 -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=DxZ1stM7nQlhgOa5oaISo71p4zaumyBdpJLbqi20uAU=; b=cswHX/NlLByRC+N1/U1QJFPcbfDcJqvkJUKxenLCkanF/f26l5ZlVg30ysORmTFchX 9BMghymxtubpavhPYm6Kocen4yT86QSU73jVs/vgecwNE+lyjucpRmKaeCdrH/VHALNZ qH6P6Lx/y/Ow6nnxziKPEO2kGH9hYAbYXEC/K4x8Y/aIbyhu9PD0tCRd7py+2DzubJKg Fs0nNE3L3KRkjeE/AXfatShrjrx/vRTIRUlBQ4S+b0LZUiq2aWBQuOa6jbxWakGzRUkk Az0+JUPS2FRER1oLaKpPSlXd2PMM5CS/BpGwrY7D1vZ6PYQ3TkjeuIIXsKgMVF6pZ4RQ ZiiQ== 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=DxZ1stM7nQlhgOa5oaISo71p4zaumyBdpJLbqi20uAU=; b=jVWd72o59nsgDMPHxL4bXaz7KU7G5Qshpjwt9hsJZmUf/pB5ZGQH5gO+QgSNds+iho M1pF+E+7L0B+U3YYtW7qY1TJWi+PDtlk6WSdb07KVwvMMxbOFGZalDbcsqXHFlbgxfsv xb2dHeXoMGA/zFiasB3GOaJlPZSFQCSbB5YFctf6ifDZP1Zq1eLjimfVR5pgLP6WxYXt NNL4yMRERfiddVQaadoFiYlUn8Eah83y0hWt5U0c2k/l9V5YyQzc+t1FqL5xiQIICp4s LD8BJUOGh57hvIZ54BnV9wVEpwvDNSzsXrteMG+gJ4BgkLVlwFTL9YIBOkYma/SD0d9D eQ4Q== X-Gm-Message-State: AKS2vOyTja92ODG4nfg/QLDqKkXXBBfiNtJJ9UmPwNbfmSW4H8nVG0pz d5g7niFNs3+T4vzHpVo= X-Received: by 10.55.58.75 with SMTP id h72mr559326qka.16.1498102407049; Wed, 21 Jun 2017 20:33:27 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 20:33:26 -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:23 -0300 Message-Id: <20170622033231.19344-14-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:c09::244 Subject: [Qemu-devel] [PATCH v2 13/21] travis: improve ccache use 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" Signed-off-by: Philippe Mathieu-Daudé --- .travis.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a7512f3ab0..96ddc16cfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,6 +68,8 @@ env: # 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}" + # ccache + - CCACHE_SLOPPINESS="file_macro,time_macros" # tests - TEST_CMD="make -j${PARALLEL_JOBS} check" matrix: @@ -82,14 +84,21 @@ git: submodules: false before_install: - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi - - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ccache ; fi - git submodule update --init --recursive before_script: + # https://docs.travis-ci.com/user/caching#ccache-on-os-x + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH=/usr/local/opt/ccache/libexec:$PATH ; fi + - if [ "$CC" == "clang" ]; then export CCACHE_CPP2=1 ; fi + - if [ -x "$(command -v ccache 2>/dev/null)" ]; then export CC="ccache ${CC}"; ccache -s -M 0 -z; fi - echo "Using ${PARALLEL_JOBS} parallel jobs" + - export HOST_CC="${CC}" - ./configure ${CONFIG} script: - - make -j${PARALLEL_JOBS} + - make -j${PARALLEL_JOBS} && ccache -s - ${TEST_CMD} +before_cache: + - ccache -s matrix: include: # Test with CLang for compile portability @@ -112,6 +121,7 @@ matrix: TEST_CMD="" compiler: gcc - env: CONFIG="" + CCACHE_SLOPPINESS="file_macro,time_macros,include_file_ctime,include_file_mtime" os: osx compiler: clang # Plain Trusty System Build