This commit is contained in:
Dan Glastonbury 2017-05-19 17:50:21 +10:00 коммит произвёл Matthew Gregan
Родитель ad8ff2a6ef
Коммит b44f5826a2
1 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -14,10 +14,14 @@ addons:
- doxygen
- mingw-w64
- mingw-w64-tools
env:
global:
- CMAKE_USE_ASAN=OFF
matrix:
include:
- env: COMPILER=clang++-3.6
- env: COMPILER=g++-4.8
- env: C_COMPILER=clang-3.6 CXX_COMPILER=clang++-3.6
- env: C_COMPILER=clang-3.6 CXX_COMPILER=clang++-3.6 CMAKE_USE_ASAN=ON
- env: C_COMPILER=gcc-4.8 CXX_COMPILER=g++-4.8
- env: SCAN_BUILD=true
- env: CROSS=mingw
- env: CROSS=android API_LEVEL=android-15
@ -42,8 +46,11 @@ before_install:
export ANDROID_NDK=$(pwd)/$NDK;
fi
before_script:
- if [[ -n $COMPILER ]]; then
export CXX=$COMPILER;
- if [[ -n $C_COMPILER ]]; then
export CC=$C_COMPILER;
fi
- if [[ -n $CXX_COMPILER ]]; then
export CXX=$CXX_COMPILER;
fi
- if [[ -n $CROSS ]]; then
export TOOLCHAIN=-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-cross-$CROSS.cmake;
@ -52,7 +59,7 @@ before_script:
export TOOLCHAIN="$TOOLCHAIN -DANDROID_NATIVE_API_LEVEL=$API_LEVEL";
fi
- mkdir build && cd build
- $SCAN_BUILD_PATH cmake -DCMAKE_BUILD_TYPE=Debug $TOOLCHAIN ..;
- $SCAN_BUILD_PATH cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZE_ADDRESS=$CMAKE_USE_ASAN $TOOLCHAIN ..;
script:
- $SCAN_BUILD_PATH cmake --build .
- if [[ $TRAVIS_OS_NAME = "linux" && -z $CROSS ]]; then