From patchwork Thu Jan 30 11:32:21 2020 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: 1231382 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ZMTgcGIe; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 487dh43gcwz9sP6 for ; Thu, 30 Jan 2020 22:40:20 +1100 (AEDT) Received: from localhost ([::1]:59172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ix8BG-0002dP-An for incoming@patchwork.ozlabs.org; Thu, 30 Jan 2020 06:40:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36033) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ix89n-0001HP-S7 for qemu-devel@nongnu.org; Thu, 30 Jan 2020 06:38:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ix89m-0008R2-CC for qemu-devel@nongnu.org; Thu, 30 Jan 2020 06:38:47 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:33220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ix89m-0008PV-4Q for qemu-devel@nongnu.org; Thu, 30 Jan 2020 06:38:46 -0500 Received: by mail-wm1-x344.google.com with SMTP id m10so6257666wmc.0 for ; Thu, 30 Jan 2020 03:38:46 -0800 (PST) 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=GYWzU+Yl4eI2jalTIIfeVTyzqasBP2kFB8JOKXhgvmo=; b=ZMTgcGIeUUwIH1K6OtmQjN5aYjDIOwFppU4ePD+ELlpH0EpqnWgdlZrjoLbVLw1c8y PrLC90XaDfwSETMq9ozVtO79130LhQPWw1UgUMmdcKBoAsKppMfc8PzexPjN8qL+PSyA VkpklC57Y1l1jKt2SJkNzDuLAT222hexnE2cWul+Z/SoGTY+hDARkdQG9JyNUuXeiIWI np7ELWxe7/KxkTiIkcCRa0NXmE6gha8e6J7rYZBzpfmhcvBkoj/Qi6+Syp9Xlx6kJrjx BcmCy8ofliCmFhiBHEpBr3P4E/A9CoLl1zmgIzE9dxus9lUtdHRRchCVMdz1mJ5M5ho6 SAfA== 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=GYWzU+Yl4eI2jalTIIfeVTyzqasBP2kFB8JOKXhgvmo=; b=rtLPFB5XxCdDRFLQZTJu4ITHbl6oRBnMD6edpq67bB7a7SCcTiguwyuhLLOx02clCj Owvh3eYJHwOkBSM3dBjeO+Zop8jLxSSi8LyPkbqsD1qNVjxoajp1E5uQgtwxpGPp8h3p McHGJFQTGugLFULi0GN6nK243weodGIaKYcB33sRKFqv+vGu2t+0d+AxvGpEZCf8Kwql jr7b9gSe93h0wynudr+I4MffkbzAhVPn/NVYRuGRFvBnSxoiCvF20c4exLjYDge65E4Y sEEaFXcTfNCRIlJuJv2j1Ayod8yRVVcMwA9ODQVe9bNpaf8bCQW92HcJONJa2XEWOWbu yMOA== X-Gm-Message-State: APjAAAU1v51jRTQf3SlmLrXJ7ae3c9X1GWpPtFzuNSid34aHo4NE80N3 Su0SX0cHmdhRNlcFTjjw3QGtmw== X-Google-Smtp-Source: APXvYqwJ/7ZAXRefDna75rnq3VdRD8wVi6jLNbH7BkfOvC6cL9imfkJWqY7zFSzwT2RRrTznnfBa8A== X-Received: by 2002:a7b:ce84:: with SMTP id q4mr4959285wmj.57.1580384324877; Thu, 30 Jan 2020 03:38:44 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w26sm5833886wmi.8.2020.01.30.03.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2020 03:38:43 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 14B371FF9A; Thu, 30 Jan 2020 11:32:24 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 10/12] .travis.yml: move cache flushing to early common phase Date: Thu, 30 Jan 2020 11:32:21 +0000 Message-Id: <20200130113223.31046-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200130113223.31046-1-alex.bennee@linaro.org> References: <20200130113223.31046-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::344 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@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" We shall be adding more common early setup in a future commit. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f245765cfe..1b92f40eab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,11 +82,16 @@ git: # we want to do this ourselves submodules: false +# Common first phase for all steps +before_install: + - if command -v ccache ; then ccache --zero-stats ; fi +# Configure step - may be overridden before_script: - - 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; } + +# Main build & test - rarely overridden - controlled by TEST_CMD script: - BUILD_RC=0 && make -j3 || BUILD_RC=$? - if [ "$BUILD_RC" -eq 0 ] ; then travis_retry ${TEST_CMD} ; else $(exit $BUILD_RC); fi @@ -268,7 +273,6 @@ matrix: before_script: - brew link --overwrite python - export PATH="/usr/local/opt/ccache/libexec:$PATH" - - 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; } @@ -499,9 +503,6 @@ matrix: - TEST_CMD="make install -j3" - QEMU_VERSION="${TRAVIS_TAG:1}" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" - before_script: - - command -v ccache && ccache --zero-stats - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} script: - make -C ${SRC_DIR} qemu-${QEMU_VERSION}.tar.bz2 - ls -l ${SRC_DIR}/qemu-${QEMU_VERSION}.tar.bz2