From patchwork Thu Jul 5 16:03:12 2018 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: 141195 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2132997ljj; Thu, 5 Jul 2018 09:19:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcj6pr1z+h0YoM8XkXZ4xwjp0JdTL99SQ03CX66bQNQgZX9Lc1zJRocQF5nMZSGAW12npel X-Received: by 2002:a37:82c7:: with SMTP id e190-v6mr5497155qkd.313.1530807569156; Thu, 05 Jul 2018 09:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530807569; cv=none; d=google.com; s=arc-20160816; b=OEIE7jHSDSpLzUnkKL3N1YsYCkqC7yghZy16/4gLk1jWWkIx/PTm/UfJzHT8jzR8ws ENorNLRQlL6Psnp+Jq2hlsDkIFado8QsBoMEE0b/198n4hOAk6BsLz8/nOR8rVf0p1eQ LbelKHj+vtev6QysssM2EZbt10zs0HEsmeArF69Ncae4lVMjwbt2F3FJQj/2GUe4zaFo FMOmDH2u4WFeCuettgJkmj6is8MHPOn+cfEi/1xgp7+yc+lgxjMefHC11r67HEWCnhLe FXW69OCcq6zeDmB7y1TmzGqFe6zOSsUyQb8MQn1dGu9BIoSzEcfiic5DE/Hew4jfKcB8 mfOA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=8ZJIkp5peP8x948t3evAemzrXu2WEsnvEGJe0RgWHkw=; b=Ok/f6AbgfFjZwXo/j0C68Ed8fyx4e8D9flYrAqIJZasitDRYxBdmvuoJ4rNGI0gx1N nlYFEvV9mbcpRps0gNaGJgLAIQELDb2MIYcuqlquTWvhHU4GyCJc/Yl+XYWLytGVmO4n gj+F4CToypLfEDdtgcVmJEYnziBb5+NBIUsbwvPVliERnUAzghdD6tlq7dRhj6BSqC3S j8xFObLGm78Yy6fJHVztBw2+ja7ZTJ3GCehLt2iC8N7v41BexBgByXhcz1gE49KOEZzn i4elDG5tcyUJv/PmiuoEYYIga19Wq03MOW6cxYsxKowuziShKGLnrv8+Z5R7OMeNCkfp bvLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fUzCNp6P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t34-v6si380033qth.151.2018.07.05.09.19.28 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 05 Jul 2018 09:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fUzCNp6P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:53630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6ye-0004UU-Hy for patch@linaro.org; Thu, 05 Jul 2018 12:19:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb6jH-0008KR-8u for qemu-devel@nongnu.org; Thu, 05 Jul 2018 12:03:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb6jG-0007ww-6f for qemu-devel@nongnu.org; Thu, 05 Jul 2018 12:03:35 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:35363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fb6jF-0007wP-Vm for qemu-devel@nongnu.org; Thu, 05 Jul 2018 12:03:34 -0400 Received: by mail-wr1-x42d.google.com with SMTP id h40-v6so1464725wrh.2 for ; Thu, 05 Jul 2018 09:03:33 -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=8ZJIkp5peP8x948t3evAemzrXu2WEsnvEGJe0RgWHkw=; b=fUzCNp6PAzvDg7qv2VfuD/FKs4wf3kjic2wY3x/Mpp7ytcVeM2FlW/BCy+3nkQqAmI qd9QPlf1fzOiuYAlE2u1+xJbHH/jZlpp3jMbAbQurlcvcCOpfWmU6d/caCfuKNg6Or6Z /dQuh7FzcH/DE40IwqN7LbW+64AlFzG6frtZ4= 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=8ZJIkp5peP8x948t3evAemzrXu2WEsnvEGJe0RgWHkw=; b=mOHOs0m8DFDTXolaxhuvgavPLyf2ky0RJzl1IWhyNeTryI0lRt5671SVr0qJG7TYi1 sgvknaxQKFdhndNbAgrESV+Q74/ia6Le5GpRjUxcd1WUD3J2oHTsWan0hwsDkeo6zudS wiKX/mF4CKrul+hYA+DWVwkP/zgvhGk3KvBTb0cGMX/0Q4fHNzivFBD5gGku/Y6QShlQ Ka/XBgv3ouLO1WbXV+y4efv5Xf+ejNmaXk0/UKpr4EboUdLbypJZfez05TmGqJhn7avs I5JS8VwLoQxHM9vnImuFwVW2t2DzOVdfZNV1taMZEJ8TEG9OXRKWk8J1J2ANClTvqnp8 aMsA== X-Gm-Message-State: APt69E27xUNpbmnrQtlP7aCLMc5s1DQHSUCpCLkkf7b7FRVZJRVJ1VV3 yJxSE02/G/cU0g2FarmkOEQBgiughls= X-Received: by 2002:adf:9025:: with SMTP id h34-v6mr5431853wrh.123.1530806612845; Thu, 05 Jul 2018 09:03:32 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h2-v6sm8792744wmd.0.2018.07.05.09.03.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jul 2018 09:03:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9260F3E06A6; Thu, 5 Jul 2018 17:03:29 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Thu, 5 Jul 2018 17:03:12 +0100 Message-Id: <20180705160329.30386-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180705160329.30386-1-alex.bennee@linaro.org> References: <20180705160329.30386-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::42d Subject: [Qemu-devel] [PULL v3 03/20] travis: test out-of-tree builds 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: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Force one config to build 'out-of-tree' (object files and executables are created in a tree outside the project source code). Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Reviewed-by: Daniel P. Berrangé -- 2.17.1 diff --git a/.travis.yml b/.travis.yml index 134d5331fe..32188d51f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,6 +50,8 @@ notifications: on_failure: always env: global: + - SRC_DIR="." + - BUILD_DIR="." - TEST_CMD="make check" - MAKEFLAGS="-j3" matrix: @@ -68,11 +70,15 @@ before_install: - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi - git submodule update --init --recursive capstone dtc ui/keycodemapdb before_script: - - ./configure ${CONFIG} || { cat config.log && exit 1; } + - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} + - ${SRC_DIR}/configure ${CONFIG} || { cat config.log && exit 1; } script: - make ${MAKEFLAGS} && ${TEST_CMD} matrix: include: + # Test out-of-tree builds + - env: CONFIG="--enable-debug --enable-debug-tcg" + BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.." # Test with Clang for compile portability (Travis uses clang-5.0) - env: CONFIG="--disable-system" compiler: clang