From patchwork Fri Oct 25 19:36:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 177784 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4197565ill; Fri, 25 Oct 2019 12:57:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJnRDwImDJ1iLjuITmsv2VzhOigyKJrEPnT+O8Kfds24Ej5gDvzPIsdKUnCQB/I5JLM+MA X-Received: by 2002:a37:507:: with SMTP id 7mr4594881qkf.107.1572033448843; Fri, 25 Oct 2019 12:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572033448; cv=none; d=google.com; s=arc-20160816; b=oPRVZ/Om6X7uxhrggBgZ21YdpyqgSY9xaxaVBKJadhm9sbaxiLd6vK6azGr/wXQMuq uhM22GKXZFcmfqsKhKMv8+7DmMt/Zr1ttoU93dP411X+x1BO5/Q3YMfsWOgRhadNvaeI FkR4uKkvIa4gQpKdx1qfw9pY/0pAxIKzMxT/Qoo0RTjMeDV5z/9vZSjr6529I9OzoTAj 7nj06wzWPXrbipUUkHkNJPIwEKin9o+lRYnmlsmAe6DsNEewPQ8NQPxx/umOFqirzkQF iYD/a6c6PIe6aF13wgHjEgn5mDiHN3hNyx785EDkTgIaBSiZqK6P1C8kk1TCJCj/WGBD cVJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=HDnFETyoSIS8dCFtwOkMGxSV5Cme4iWm+VQG9FYgBJY=; b=g5V+EnMrLiA0H9OeJqn+hbokm1MW+rgUR/CqhbS5zyZZzsrbpq44Sr/THLy25qMyCX gZZs6DHz8A4+Le52P7Wf8OncLj35BA8pkGjQo+k95AZyOtarJHJmx3MET4g2SnwHwkVO +MVtpjyk/aQk+AXGjGU11OIvaL90ZMJzqqcYOK3OZlnjhAOBRxVcPXphFU1p+A0gKhPY D4NtyIl8osSpClYROxqi2Sv/qmaUGalgNdDZV9JGuEIVKmwBeFmzIAOQycGaIqZqhW5H t9h5v9hgXS8ChYKbkkV+RGVUjtTAX1BJqYGUd6Pw2GLdfSlAP1hiy8SJFrTUVLgUBw1O wfhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ie8oh25w; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n3si2527837qtl.93.2019.10.25.12.57.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2019 12:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ie8oh25w; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO5iA-0004YT-7f for patch@linaro.org; Fri, 25 Oct 2019 15:57:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57783) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO5Og-0008AL-BG for qemu-devel@nongnu.org; Fri, 25 Oct 2019 15:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO5Of-00037M-5z for qemu-devel@nongnu.org; Fri, 25 Oct 2019 15:37:18 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:35937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO5Oe-00036o-WE for qemu-devel@nongnu.org; Fri, 25 Oct 2019 15:37:17 -0400 Received: by mail-wr1-x433.google.com with SMTP id w18so3637453wrt.3 for ; Fri, 25 Oct 2019 12:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HDnFETyoSIS8dCFtwOkMGxSV5Cme4iWm+VQG9FYgBJY=; b=ie8oh25wgFnQzDJU2H4SE3ZJByT33fWoh6JnN4z2Z+nu7gIsskRp91SfnEM+/I06PH pJDBE0RDG8IVY7wcuIhVz64DEsf82kP5RVZI6o3licLeySqIKGqhYShMN8MaFo9vSTLe XdJs5ZnMr93Rm8jD8i1TM3EsraQthmSm/U/2H97Wwbd5NJ08yfwddO189ILvCgHHbpTa ntmQ8y1O0dCASDa2r7x5kq1CwQFH3IPEQJ8adtJ5WKnPq4TM3xkgJ5wBRbY/zA5DO7uO lTpoM3VuzSinnZHq/u3DXYSrtrmZ0+/EovQWXWt0u5bbrzaS51FDo0Aebq2CnvMXXmBb MzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HDnFETyoSIS8dCFtwOkMGxSV5Cme4iWm+VQG9FYgBJY=; b=pIll68GCkgSVDJ2eibUPAkmx9EvTA2m40W9RRINIdHEPoAqkuT1QJNg0bdRl7wN1Yb maPEX7tv8kR7QlDKKBrvqGKiwniJ2EMQyHwWPhBH6R5LpngDFw5m6EiRMfcYK5HnShdk EhBU667aguTbejANluz5T9l8e1qp5880F4+Cn1wpPsSPhWtZguvZnH0sMIayo9dBDO5O g2CKaRMZtwzNm7OyrDds8JAuvT82/h3QILuvVMzb30Z7TpXPPp0fH2IS03oNw9XNejD3 d4zj/lkX/Qu2fErxDNBZuAJVSmYit7B1Na97+3xRYa7QqlAtPDL4w9Fa92alaQ/NP5aF Qg3g== X-Gm-Message-State: APjAAAUU9ApKAyr7iKhn42LACT7IK/UZi3+sju8B1Hq3XGbHUUM4xIxF 39+K2hkuWMwD5pMy8/shsVwczg== X-Received: by 2002:a5d:6ac3:: with SMTP id u3mr4663889wrw.206.1572032235924; Fri, 25 Oct 2019 12:37:15 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r19sm3579023wrr.47.2019.10.25.12.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 12:37:13 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E22831FF92; Fri, 25 Oct 2019 20:37:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v3 05/15] travis.yml: Fix the ccache lines Date: Fri, 25 Oct 2019 20:36:59 +0100 Message-Id: <20191025193709.28783-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025193709.28783-1-alex.bennee@linaro.org> References: <20191025193709.28783-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::433 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth The "command -v ccache && ccache ..." likely were supposed to test the availability of ccache before running the program. But this shell construct causes Travis to abort if ccache is not available. Use an if-statement instead to fix this problem. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20191009170701.14756-5-thuth@redhat.com> Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/.travis.yml b/.travis.yml index e65e53f3d7e..7e0d4ad2b31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -91,13 +91,13 @@ git: before_script: - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi - - command -v ccache && ccache --zero-stats + - if command -v ccache ; then ccache --zero-stats ; fi - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } script: - make -j3 && travis_retry ${TEST_CMD} after_script: - - command -v ccache && ccache --show-stats + - if command -v ccache ; then ccache --show-stats ; fi matrix: