31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
version: 1.3.0-{build}
|
|
branches:
|
|
only:
|
|
- master
|
|
- develop
|
|
- /^release/
|
|
- /^support/
|
|
- /^build-ci/
|
|
image:
|
|
- Visual Studio 2022
|
|
- Visual Studio 2019
|
|
- Visual Studio 2017
|
|
- Visual Studio 2015
|
|
environment:
|
|
matrix:
|
|
- CFLAGS_VAR: ""
|
|
CFLAGS_VAR_DLL: "CFLAGS=\"/Ox /MD /DLTM_TEST_DYNAMIC\""
|
|
build_script:
|
|
- cmd: >-
|
|
if "Visual Studio 2022"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
if "Visual Studio 2019"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
if "Visual Studio 2017"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
if "Visual Studio 2015"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
|
if "Visual Studio 2015"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
|
|
nmake -f makefile.msvc test.exe %CFLAGS_VAR%
|
|
nmake -f makefile.msvc clean-obj
|
|
nmake -f makefile.msvc test_dll.exe %CFLAGS_VAR_DLL%
|
|
test_script:
|
|
- cmd: test.exe
|
|
- cmd: test_dll.exe
|