mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
image:
|
|
- Visual Studio 2017
|
|
|
|
environment:
|
|
matrix:
|
|
- WITH_NO_EXCEPTIONS: OFF
|
|
WITH_CPP_LATEST: OFF
|
|
- WITH_NO_EXCEPTIONS: ON
|
|
WITH_CPP_LATEST: OFF
|
|
- WITH_NO_EXCEPTIONS: OFF
|
|
WITH_CPP_LATEST: ON
|
|
|
|
configuration:
|
|
- Debug
|
|
|
|
platform:
|
|
- x64
|
|
|
|
clone_script:
|
|
- cmd: git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%
|
|
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%
|
|
- cmd: git submodule update --init --recursive
|
|
|
|
before_build:
|
|
- cmd: >
|
|
cmake -H. -Bbuild -A%PLATFORM%
|
|
-DCTI_CONTINUABLE_WITH_NO_EXCEPTIONS=%WITH_NO_EXCEPTIONS%
|
|
-DCTI_CONTINUABLE_WITH_EXPERIMENTAL_COROUTINE=ON
|
|
-DCTI_CONTINUABLE_WITH_CPP_LATEST=%WITH_CPP_LATEST%
|
|
|
|
build_script:
|
|
- cmd: cmake --build build --config %CONFIGURATION% --target ALL_BUILD -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
|
|
- cmd: cmake --build build --config %CONFIGURATION% --target PACKAGE -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
|
|
|
|
test_script:
|
|
- cmd: cd build
|
|
- cmd: ctest -C %CONFIGURATION% -V .
|
|
|
|
artifacts:
|
|
- path: 'build/*.zip'
|