travis: test out-of-tree builds
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> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
ebdfb6101d
commit
ebf2ff659b
@ -50,6 +50,8 @@ notifications:
|
|||||||
on_failure: always
|
on_failure: always
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
- SRC_DIR="."
|
||||||
|
- BUILD_DIR="."
|
||||||
- TEST_CMD="make check"
|
- TEST_CMD="make check"
|
||||||
- MAKEFLAGS="-j3"
|
- MAKEFLAGS="-j3"
|
||||||
matrix:
|
matrix:
|
||||||
@ -68,11 +70,15 @@ before_install:
|
|||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
|
||||||
- git submodule update --init --recursive capstone dtc ui/keycodemapdb
|
- git submodule update --init --recursive capstone dtc ui/keycodemapdb
|
||||||
before_script:
|
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:
|
script:
|
||||||
- make ${MAKEFLAGS} && ${TEST_CMD}
|
- make ${MAKEFLAGS} && ${TEST_CMD}
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
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)
|
# Test with Clang for compile portability (Travis uses clang-5.0)
|
||||||
- env: CONFIG="--disable-system"
|
- env: CONFIG="--disable-system"
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
Loading…
Reference in New Issue
Block a user