2017-06-10 01:11:29 +08:00
|
|
|
version: 1.0.{build}
|
2019-12-05 20:17:10 +08:00
|
|
|
image: Visual Studio 2017
|
2017-06-10 01:11:29 +08:00
|
|
|
environment:
|
|
|
|
matrix:
|
2020-04-29 06:32:10 +08:00
|
|
|
- GENERATOR: '"Visual Studio 14 2015"'
|
|
|
|
BUILD_TYPE: Debug
|
|
|
|
WCHAR: 'OFF'
|
|
|
|
BUILD_SHARED: 'OFF'
|
|
|
|
- GENERATOR: '"Visual Studio 14 2015"'
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
WCHAR: 'ON'
|
|
|
|
BUILD_SHARED: 'OFF'
|
|
|
|
- GENERATOR: '"Visual Studio 14 2015 Win64"'
|
|
|
|
BUILD_TYPE: Debug
|
|
|
|
WCHAR: 'ON'
|
|
|
|
BUILD_SHARED: 'OFF'
|
|
|
|
- GENERATOR: '"Visual Studio 14 2015 Win64"'
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
WCHAR: 'ON'
|
|
|
|
BUILD_SHARED: 'OFF'
|
|
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
|
|
BUILD_TYPE: Debug
|
|
|
|
WCHAR: 'ON'
|
|
|
|
BUILD_SHARED: 'OFF'
|
|
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
WCHAR: 'OFF'
|
|
|
|
BUILD_SHARED: 'OFF'
|
|
|
|
- GENERATOR: '"Visual Studio 15 2017 Win64"'
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
WCHAR: 'OFF'
|
|
|
|
BUILD_SHARED: 'ON'
|
2017-06-10 01:11:29 +08:00
|
|
|
build_script:
|
2020-04-29 06:32:10 +08:00
|
|
|
- cmd: >-
|
|
|
|
set
|
2017-06-10 01:11:29 +08:00
|
|
|
|
2020-04-29 06:32:10 +08:00
|
|
|
mkdir build
|
2017-06-10 01:11:29 +08:00
|
|
|
|
2020-04-29 06:32:10 +08:00
|
|
|
cd build
|
2018-12-02 22:30:07 +08:00
|
|
|
|
2020-04-29 09:18:57 +08:00
|
|
|
set PATH=%PATH%;C:\Program Files\Git\usr\bin
|
2020-04-29 06:32:10 +08:00
|
|
|
|
2020-06-08 08:29:58 +08:00
|
|
|
cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DSPDLOG_WCHAR_SUPPORT=%WCHAR% -DSPDLOG_BUILD_SHARED=%BUILD_SHARED% -DSPDLOG_BUILD_EXAMPLE=ON -DSPDLOG_BUILD_EXAMPLE_HO=ON -DSPDLOG_BUILD_TESTS=ON -DSPDLOG_BUILD_TESTS_HO=OFF -DSPDLOG_BUILD_WARNINGS=ON
|
2020-04-29 06:32:10 +08:00
|
|
|
|
|
|
|
cmake --build . --config %BUILD_TYPE%
|
|
|
|
|
|
|
|
before_test:
|
2020-04-29 09:18:57 +08:00
|
|
|
- set PATH=%PATH%;C:\projects\spdlog\build\%BUILD_TYPE%
|
2020-04-29 06:32:10 +08:00
|
|
|
|
2018-12-02 22:30:07 +08:00
|
|
|
test_script:
|
2020-04-29 08:54:59 +08:00
|
|
|
- C:\projects\spdlog\build\tests\%BUILD_TYPE%\spdlog-utests.exe
|