From patchwork Tue Jul 3 10:14:26 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: 140933 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp977387ljj; Tue, 3 Jul 2018 03:17:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpePLLitl6Kh5DFJdJULWLIQrI746mLftaStwCeTAc+9eLax7X0HmbKD7LNACUB2U6a4F95q X-Received: by 2002:ac8:3872:: with SMTP id r47-v6mr3672591qtb.69.1530613079824; Tue, 03 Jul 2018 03:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530613079; cv=none; d=google.com; s=arc-20160816; b=yg174v3s8mhzfe4wFMfkiWis/ZTxF1bG7e9nutZ6hvWaQNVei2xeK3GBKeUoSMfum4 aQDeGFrYhymBAsyoex/SuFubO9241BUgyuBbuamWcQ6EwJnAh2/vlLjSvtq9I2/bbLS2 JoQ8maq2in4EfMYCY+W7lyjt/S4VV5LKI7MXlkJMwmx0Qtt2qn2mUnLmeVviw3xmSTji Pj01YG564V6b70w/QrQZtXbiLaHKPX9nif3ztb8Fwmi3fvSegsg5ovu2s7gr7yzXEhTp 9DsKVp0u/Rfs/m4v4eIwTKTHT+o5jwKbbW4qsEv4enLPonjKFIyjHDCt4tNuN615qMeD LooA== 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=lMVcS/2xJb/H+E99pwPI3Dl5TAiaEDPR48BSNAOYmJ/+U81SFL6IJGPYHt7YVpt6Ic sEs/leam1UlpDGkoUvjfiVtq8+HHL7NUWIv3ZmAmk1yYod7h1fjaYV9WyFFIT08+F3Th 2UnALtofFfJW32XgV9tol+fAz5pKd19b5fe6f51St4ZzBB6Sdp8bmeu+hYt3wi0f+DXK 53PsMF0uTJ4HLyMjf5CJOvnHT4roSGVPItNhu0XRo+TBYrNpgu8NsuwZqXEnYrO9nkFN 31mPY0CAbitklcaOKmm6fSECOWx1U008C8BW3NLROpm3PXL8MW/+Dfad6IWyAuIit8Rj rhhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QAZRSKDe; 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 x30-v6si757858qtk.39.2018.07.03.03.17.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 03 Jul 2018 03:17:59 -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=QAZRSKDe; 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]:39361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faINj-00083t-8K for patch@linaro.org; Tue, 03 Jul 2018 06:17:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faIKg-0006lG-Sq for qemu-devel@nongnu.org; Tue, 03 Jul 2018 06:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faIKf-0008On-2J for qemu-devel@nongnu.org; Tue, 03 Jul 2018 06:14:50 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:37778) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1faIKe-0008NT-RW for qemu-devel@nongnu.org; Tue, 03 Jul 2018 06:14:48 -0400 Received: by mail-wr0-x22c.google.com with SMTP id q10-v6so1356447wrd.4 for ; Tue, 03 Jul 2018 03:14:48 -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=QAZRSKDesdpSRFSqIU0RYWND5wYkf7ArroSYWb5NIK1rqhyrbiRJ1zjfuuA4IeyZ2K fwOiakQWLydxB6POts/1lgG9ha2OMJKhY2dlofcWgF3/vpz9TfBF4z67AUIFaLpsGac6 GrnP+XtbWa3AzR51jqXlliy/WFQAVkZCLJRB4= 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=PdTfiqTxcR7b/I2yu+iU+pG5ez//Y8OlXQGAhcEYlabd4kDsXu7t+2RKHrNXCKqxSi Y7Z9kwL1F+WQSbRblBrFRi6mQgKKhVbIpTPdvyphmqdoOe5qWyc1vPFe2rLM2HNQ4yfS A4otLFNnBOBzwDrQTH253tTIFhHPC6IlhAau++QxeoO5VxGFxiDVQ2Lk4/b6CwplLB1P yuUbx4hJMCjIJReMQ/OdqAxqGlcP0LMWHNyXdDmnFt6V2m0HLpRCeAfAQlqQBhJtyZgM tRJ+q+Gu/F+f8gdu3MdBmEigu11FveLNHN7ZgwusjZIGkbW8ABDPIjo9YEOj42JNoNa9 BIVQ== X-Gm-Message-State: APt69E1cAiw5TIY4VyfS6WJUmM2664qYQBy39NIJXppSVKBNU/CsiO0X h7itwcmzuKuyB5D7jp3vaX8SDg== X-Received: by 2002:adf:9c91:: with SMTP id d17-v6mr14631065wre.11.1530612887791; Tue, 03 Jul 2018 03:14:47 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d4-v6sm1028532wrp.51.2018.07.03.03.14.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 03:14:46 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AA8523E031F; Tue, 3 Jul 2018 11:14:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 3 Jul 2018 11:14:26 +0100 Message-Id: <20180703101444.23778-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180703101444.23778-1-alex.bennee@linaro.org> References: <20180703101444.23778-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:400c:c0c::22c Subject: [Qemu-devel] [PULL 02/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: agraf@suse.de, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, qemu-devel@nongnu.org, f4bug@amsat.org, cota@braap.org, famz@redhat.com, aurelien@aurel32.net 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