2019-03-02 05:12:01 +08:00
|
|
|
# Build matrix / environment variables are explained on:
|
|
|
|
# https://www.appveyor.com/docs/appveyor-yml/
|
|
|
|
# This file can be validated on: https://ci.appveyor.com/tools/validate-yaml
|
|
|
|
|
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
# AppVeyor currently has no custom job name feature.
|
|
|
|
# http://help.appveyor.com/discussions/questions/1623-can-i-provide-a-friendly-name-for-jobs
|
2019-11-12 03:58:55 +08:00
|
|
|
- JOB: Visual Studio 2019
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
CMAKE_GENERATOR: Visual Studio 16 2019
|
2019-03-02 05:12:01 +08:00
|
|
|
|
|
|
|
platform:
|
|
|
|
- x86
|
|
|
|
- x64
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- RelWithDebInfo
|
|
|
|
- Debug
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-11-12 03:58:55 +08:00
|
|
|
- if "%platform%"=="x86" (set CMAKE_GENERATOR_PLATFORM="Win32")
|
|
|
|
else (set CMAKE_GENERATOR_PLATFORM="%platform%")
|
2019-03-02 05:12:01 +08:00
|
|
|
- cmake --version
|
2019-11-12 03:58:55 +08:00
|
|
|
- cmake .. -G "%CMAKE_GENERATOR%" -A "%CMAKE_GENERATOR_PLATFORM%"
|
2019-03-02 05:12:01 +08:00
|
|
|
-DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%"
|
|
|
|
- cmake --build . --config "%CONFIGURATION%"
|
|
|
|
- cd ..
|
|
|
|
|
|
|
|
test_script:
|
2019-03-05 10:27:03 +08:00
|
|
|
- cd build && ctest --verbose --build-config "%CONFIGURATION%" && cd ..
|