* [Qemu-devel] [RFC PATCH] travis: Test out-of-tree builds
@ 2018-06-21 12:26 Philippe Mathieu-Daudé
2018-07-27 9:10 ` Fam Zheng
2018-07-27 9:14 ` Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-06-21 12:26 UTC (permalink / raw)
To: Alex Bennée, Fam Zheng; +Cc: Philippe Mathieu-Daudé, qemu-devel
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é <f4bug@amsat.org>
---
I noticed various out-of-tree issue in the last 2 merge windows.
Pseudo-randomly picked a build from the matrix which covers system + user.
.travis.yml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index fabfe9ec34..02e096f6a9 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:
@@ -69,11 +71,15 @@ before_install:
- wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
- git submodule update --init --recursive
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
--
2.18.0.rc2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Qemu-devel] [RFC PATCH] travis: Test out-of-tree builds
2018-06-21 12:26 [Qemu-devel] [RFC PATCH] travis: Test out-of-tree builds Philippe Mathieu-Daudé
@ 2018-07-27 9:10 ` Fam Zheng
2018-07-27 9:14 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Fam Zheng @ 2018-07-27 9:10 UTC (permalink / raw)
To: Philippe Mathieu-Daudé; +Cc: Alex Bennée, qemu-devel
On Thu, 06/21 09:26, Philippe Mathieu-Daudé wrote:
> 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é <f4bug@amsat.org>
> ---
> I noticed various out-of-tree issue in the last 2 merge windows.
>
> Pseudo-randomly picked a build from the matrix which covers system + user.
>
> .travis.yml | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index fabfe9ec34..02e096f6a9 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:
> @@ -69,11 +71,15 @@ before_install:
> - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
> - git submodule update --init --recursive
> 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="../../.."
Is a three-level nesting really necessary? I think a simple './build' dir should
do.
> # Test with Clang for compile portability (Travis uses clang-5.0)
> - env: CONFIG="--disable-system"
> compiler: clang
> --
> 2.18.0.rc2
>
Fam
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Qemu-devel] [RFC PATCH] travis: Test out-of-tree builds
2018-06-21 12:26 [Qemu-devel] [RFC PATCH] travis: Test out-of-tree builds Philippe Mathieu-Daudé
2018-07-27 9:10 ` Fam Zheng
@ 2018-07-27 9:14 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2018-07-27 9:14 UTC (permalink / raw)
To: Philippe Mathieu-Daudé; +Cc: Alex Bennée, Fam Zheng, QEMU Developers
On 21 June 2018 at 13:26, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> 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é <f4bug@amsat.org>
> ---
> I noticed various out-of-tree issue in the last 2 merge windows.
That's odd, because all my pre-merge build tests are out-of-tree
(in-tree is the case I don't cover). Presumably they were only
for specific oddball configs ?
(Not that there's any harm in covering this in travis too.)
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-27 9:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-21 12:26 [Qemu-devel] [RFC PATCH] travis: Test out-of-tree builds Philippe Mathieu-Daudé
2018-07-27 9:10 ` Fam Zheng
2018-07-27 9:14 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).