[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v3 03/20] travis: test out-of-tree builds
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL v3 03/20] travis: test out-of-tree builds |
Date: |
Thu, 5 Jul 2018 17:03:12 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
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é <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
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
--
2.17.1
- [Qemu-devel] [PULL v3 00/20] Travis, Code Coverage and Cross Build updates, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 01/20] Revert "Makefile: Rename TARGET_DIRS to TARGET_LIST", Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 04/20] build-system: remove per-test GCOV reporting, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 05/20] .gitignore: add .gcov files, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 03/20] travis: test out-of-tree builds,
Alex Bennée <=
- [Qemu-devel] [PULL v3 12/20] docker: ubuntu: Update the package list before installing new ones, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 10/20] linux-user: introduce preexit_cleanup, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 13/20] docker: ubuntu: Use SDL2, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 19/20] docker: add special rule for deboostrapped images, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 06/20] docker: add gcovr to travis image, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 08/20] build-system: add clean-coverage target, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 02/20] travis: do not waste time cloning unused submodules, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 07/20] travis: add gcovr summary for GCOV build, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 11/20] linux-user: add gcov support to preexit_cleanup, Alex Bennée, 2018/07/05
- [Qemu-devel] [PULL v3 15/20] docker: Do not run tests in 'intermediate' images, Alex Bennée, 2018/07/05