2020-04-10 13:25:41 +02:00
|
|
|
version: '{branch}.{build}'
|
2021-11-27 02:29:26 +00:00
|
|
|
|
|
|
|
|
image:
|
|
|
|
|
# VS2015 also used for earlier VS builds
|
|
|
|
|
# aka os: Windows Server 2012 R2
|
|
|
|
|
- Visual Studio 2015
|
|
|
|
|
# aka os: Windows Server 2016
|
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
# aka os: Windows Server 2019
|
|
|
|
|
- Visual Studio 2019
|
2020-04-10 13:25:41 +02:00
|
|
|
|
|
|
|
|
platform: x64
|
|
|
|
|
|
2021-11-27 02:29:26 +00:00
|
|
|
for:
|
|
|
|
|
-
|
2020-04-10 13:25:41 +02:00
|
|
|
matrix:
|
2021-11-27 02:29:26 +00:00
|
|
|
only:
|
|
|
|
|
- image: Visual Studio 2015
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
matrix:
|
|
|
|
|
- b_toolset: Windows7.1SDK
|
|
|
|
|
b_config: Debug
|
2020-04-10 13:25:41 +02:00
|
|
|
|
2021-11-27 02:29:26 +00:00
|
|
|
- b_toolset: v120
|
|
|
|
|
b_config: Debug
|
2020-04-10 13:25:41 +02:00
|
|
|
|
2021-11-27 02:29:26 +00:00
|
|
|
- b_toolset: v140
|
|
|
|
|
b_config: Debug
|
2020-04-10 13:25:41 +02:00
|
|
|
|
2021-11-27 02:29:26 +00:00
|
|
|
build_script:
|
|
|
|
|
- cmake -T %b_toolset% -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
|
|
|
|
|
- cmake --build . --target install
|
2020-04-10 13:25:41 +02:00
|
|
|
|
2021-11-27 02:29:26 +00:00
|
|
|
environment:
|
|
|
|
|
matrix:
|
|
|
|
|
- b_config: Debug
|
2020-04-10 13:25:41 +02:00
|
|
|
|
2021-11-27 02:29:26 +00:00
|
|
|
- b_config: Release
|
2020-04-10 13:25:41 +02:00
|
|
|
|
|
|
|
|
build_script:
|
2021-11-27 02:29:26 +00:00
|
|
|
- cmake -DCMAKE_BUILD_TYPE=%b_config% -DCMAKE_INSTALL_PREFIX=t_install .
|
2020-04-10 13:25:41 +02:00
|
|
|
- cmake --build . --target install
|
|
|
|
|
|
|
|
|
|
after_build:
|
|
|
|
|
- cd t_install
|
|
|
|
|
- 7z a ../json-c.win32.%b_toolset%.%b_config%.zip *
|
|
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
|
- path: json-c.win32.%b_toolset%.%b_config%.zip
|
|
|
|
|
name: json-c.win32.%b_toolset%.%b_config%.zip
|