mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-21 03:12:41 +08:00
78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
version: 1.0.{build}
|
|
image: Visual Studio 2019
|
|
environment:
|
|
matrix:
|
|
- GENERATOR: '"Visual Studio 14 2015"'
|
|
BUILD_TYPE: Debug
|
|
BUILD_SHARED: 'OFF'
|
|
WCHAR: 'OFF'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 14 2015"'
|
|
BUILD_TYPE: Release
|
|
BUILD_SHARED: 'OFF'
|
|
WCHAR: 'ON'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 14 2015 Win64"'
|
|
BUILD_TYPE: Debug
|
|
BUILD_SHARED: 'OFF'
|
|
WCHAR: 'ON'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 14 2015 Win64"'
|
|
BUILD_TYPE: Release
|
|
BUILD_SHARED: 'OFF'
|
|
WCHAR: 'ON'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
BUILD_TYPE: Debug
|
|
BUILD_SHARED: 'OFF'
|
|
WCHAR: 'ON'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
BUILD_TYPE: Release
|
|
BUILD_SHARED: 'OFF'
|
|
WCHAR: 'OFF'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
BUILD_TYPE: Release
|
|
BUILD_SHARED: 'ON'
|
|
WCHAR: 'OFF'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'ON'
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
BUILD_TYPE: Release
|
|
BUILD_SHARED: 'ON'
|
|
WCHAR: 'ON'
|
|
WCHAR_FILES: 'ON'
|
|
BUILD_EXAMPLE: 'OFF'
|
|
- GENERATOR: '"Visual Studio 16 2019 -A x64"'
|
|
BUILD_TYPE: Release
|
|
BUILD_SHARED: 'ON'
|
|
WCHAR: 'OFF'
|
|
WCHAR_FILES: 'OFF'
|
|
BUILD_EXAMPLE: 'OFF'
|
|
build_script:
|
|
- cmd: >-
|
|
set
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
set PATH=%PATH%;C:\Program Files\Git\usr\bin
|
|
|
|
cmake -G %GENERATOR% -D CMAKE_BUILD_TYPE=%BUILD_TYPE% -D BUILD_SHARED_LIBS=%BUILD_SHARED% -D SPDLOG_WCHAR_SUPPORT=%WCHAR% -D SPDLOG_WCHAR_FILENAMES=%WCHAR_FILES% -D SPDLOG_BUILD_EXAMPLE=%BUILD_EXAMPLE% -D SPDLOG_BUILD_EXAMPLE_HO=%BUILD_EXAMPLE% -D SPDLOG_BUILD_TESTS=ON -D SPDLOG_BUILD_TESTS_HO=OFF -D SPDLOG_BUILD_WARNINGS=ON ..
|
|
|
|
cmake --build . --config %BUILD_TYPE%
|
|
|
|
before_test:
|
|
- set PATH=%PATH%;C:\projects\spdlog\build\%BUILD_TYPE%
|
|
|
|
test_script:
|
|
- C:\projects\spdlog\build\tests\%BUILD_TYPE%\spdlog-utests.exe
|