From patchwork Fri Jun 29 20:52:13 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: 140636 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1297262ljj; Fri, 29 Jun 2018 13:54:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrM2+0YsANhQCKpPUJ9HrXNrKjxbi+ZhkyrN/+agaNj6+CfMbH4sSSQ8C4QubCrSYV9LaR X-Received: by 2002:a37:9444:: with SMTP id w65-v6mr14260028qkd.268.1530305650134; Fri, 29 Jun 2018 13:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530305650; cv=none; d=google.com; s=arc-20160816; b=GFl4vRXsteBjMeZC/aInjn5p5fxugcIFEvJ7SaMVyulezsXvPM9ahZjJzS4CV4z5nI 8jbXi3z/gmGtVcbxYIAthix7UX+Az41LXlaq/3fJjUXfhkqCFLAhCkqsx34WyPaCV6nu 7PQJExg3TDdKLppFuYmZGcFvKhjLqZ9ypdJ9A4HgNW40GXVq4KOLvRmXoWwd+j7uO722 hI9pkisUHAIdN4xSdaDe5pQuN37Bbakp10kyqGEqe6hKCaUu+/RHw+37VTLUi7A/5rVv 3qwyTFXxySzhmWzdBDn7wNc+8DUUWBNEBlV5VeoGU/38n8dn+RiCQvKSZId9exEWmwej vGag== 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=aLRRfTifj+vCQZLLSS1uMRWJE+rR0Fr5BOQLcDcjU5Q=; b=E/Iey7VkK73HCeVIkNpMYoOAZj7Jyiz2wuW75qFvurAqop3qEEjto9abmbAQ5/0b4f quOrjp2LG3G3VqGIKhc9SMVgMx5FgmIO2ouZgCBJHN9veWG03SqQLCgDCHBwBZ9BzbaN T/4g/3HY0wIC6d76B63GpTu8TBkmg9NUD6Rr2ftXEcdYBcrCNyIlMg2lt4OjSZC4/npY Jvm/bLcM1/m5HzGEKJgTgtyFCQJ95qk0+gWP3rNaUZ/plirVVlm6nnNIAl1Z9CABsV+Y GNNG1sOBhgafFfgv8MQS3ss+o+nVQ2xbGfFnVYxYjS8FR7qJHBu3+mXBu4tiFs9FthMh 9kfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KOvwOrMi; 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 22-v6si1307207qkm.51.2018.06.29.13.54.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 29 Jun 2018 13:54:10 -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=KOvwOrMi; 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]:44413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ0PB-0000Y2-HW for patch@linaro.org; Fri, 29 Jun 2018 16:54:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZ0Nk-00083n-Iu for qemu-devel@nongnu.org; Fri, 29 Jun 2018 16:52:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZ0Nh-0006KU-By for qemu-devel@nongnu.org; Fri, 29 Jun 2018 16:52:40 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:35917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZ0Nh-0006J0-4E for qemu-devel@nongnu.org; Fri, 29 Jun 2018 16:52:37 -0400 Received: by mail-wr0-x22a.google.com with SMTP id f16-v6so9979666wrm.3 for ; Fri, 29 Jun 2018 13:52:36 -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=aLRRfTifj+vCQZLLSS1uMRWJE+rR0Fr5BOQLcDcjU5Q=; b=KOvwOrMidaS5sKv6r+WtVPu4AuG5GT7luVWKiffKGLq75HbGVlvXkp/5Fe6HgQomHz 7tW7yvT96ff8UZzF6bbVevqYgG7PGj59NTJw0c249iyOu5Gmy3JwveG0j+8skDhI6MuH lgXvbE3UKoNv1q29FBnglapiQFNcTD8wORVcw= 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=aLRRfTifj+vCQZLLSS1uMRWJE+rR0Fr5BOQLcDcjU5Q=; b=RfBth3O9e6bum/7x9sbD65l3DAds6IiC50No61clQ2o0c8RG92vF/m02HdlnHMG5kf kvrzW3Ah5jDnb5yw5HbBpuvyGRXf28qoAeqK7BR4DWc7ykfuojWOJG4yLn2RPCRpH1YI nvFHYYSeVZOyqq0LUkCbVo1PfLODKl7aALu9o09G2uGnGF6b92zJ1PxmLH9+XB5triA3 +AlM4IBBAdwo1vWD1doizlFvPX5qhhkPfaFlRQZhpuxyVl1tAmfErEApa7tXUYcHKDuB Ani1dfDOD47R+CJHx/IByosfsRrpkx+CY5NLEgnmbqKhzjXE3yEWbtVNMHnEMhMJY93B TOOA== X-Gm-Message-State: APt69E3Npj8rmbtY5tT5CMe5uBz7I3FMls5UzZUjynNrHT3thyvUFqDT 93ZtA3GqSZp3wlRO8nsY/D2y0g== X-Received: by 2002:adf:a45d:: with SMTP id e29-v6mr13094659wra.121.1530305555955; Fri, 29 Jun 2018 13:52:35 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u15-v6sm4503059wma.37.2018.06.29.13.52.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jun 2018 13:52:34 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id EA5F53E0115; Fri, 29 Jun 2018 21:52:32 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Fri, 29 Jun 2018 21:52:13 +0100 Message-Id: <20180629205232.27190-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180629205232.27190-1-alex.bennee@linaro.org> References: <20180629205232.27190-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::22a Subject: [Qemu-devel] [PATCH v2 02/21] 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: pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org 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é --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 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