2018-09-17 02:21:39 +02:00
|
|
|
image:
|
|
|
|
#- Visual Studio 2013
|
|
|
|
#- Visual Studio 2015
|
|
|
|
- Visual Studio 2017
|
|
|
|
- Visual Studio 2017 Preview
|
2018-09-16 10:17:50 +02:00
|
|
|
|
|
|
|
platform:
|
2018-09-17 02:21:39 +02:00
|
|
|
- x64
|
2018-09-19 08:53:06 +02:00
|
|
|
- x86
|
|
|
|
- Any CPU
|
2018-09-16 10:17:50 +02:00
|
|
|
|
|
|
|
configuration:
|
2018-09-27 04:18:06 +02:00
|
|
|
- Debug
|
|
|
|
- RelWithDebInfo
|
2019-01-21 05:20:18 +01:00
|
|
|
- Release
|
2018-09-16 10:17:50 +02:00
|
|
|
|
2018-09-17 02:21:39 +02:00
|
|
|
version: '{branch}-{build}'
|
|
|
|
|
|
|
|
init:
|
2018-09-18 07:03:03 +02:00
|
|
|
- echo %NUMBER_OF_PROCESSORS%
|
2018-09-17 02:21:39 +02:00
|
|
|
- echo %PLATFORM%
|
|
|
|
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
2019-01-20 12:20:16 +01:00
|
|
|
- set arch=32
|
|
|
|
- if "%PLATFORM%"=="x64" ( set arch=64)
|
|
|
|
- set VisualStudioVersion=2017
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017 Preview" ( set VisualStudioVersion=Preview)
|
|
|
|
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\%VisualStudioVersion%\Community\VC\Auxiliary\Build\vcvars%arch%.bat"
|
2018-09-17 02:21:39 +02:00
|
|
|
|
2018-09-16 10:17:50 +02:00
|
|
|
install:
|
2018-11-22 06:44:44 +01:00
|
|
|
- choco install -y dokany --version 1.1.0.2000 --installargs INSTALLDEVFILES=1
|
2018-09-16 10:17:50 +02:00
|
|
|
- cmake --version
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cmd: mkdir build
|
|
|
|
- cmd: cd build
|
2019-01-20 12:20:16 +01:00
|
|
|
- cmd: cmake .. -G "Ninja" -DBUILD_TESTING=on -DBOOST_ROOT="C:/Libraries/boost_1_65_1" -DDOKAN_PATH="C:/Program Files/Dokan/DokanLibrary-1.1.0"
|
2018-09-16 10:17:50 +02:00
|
|
|
- cmd: cmake --build . --config %CONFIGURATION%
|
2019-01-20 12:20:16 +01:00
|
|
|
- cmd: .\test\gitversion\gitversion-test.exe
|
2019-01-20 12:21:20 +01:00
|
|
|
# cpp-utils-test disables ThreadDebuggingTest_ThreadName.*_thenIsCorrect because the appveyor image is too old to support the API needed for that
|
|
|
|
- cmd: cd .\test\cpp-utils\ && .\cpp-utils-test.exe --gtest_filter=-ThreadDebuggingTest_ThreadName.*_thenIsCorrect && cd ..\..
|
2019-01-20 12:20:16 +01:00
|
|
|
#- cmd: .\test\fspp\fspp-test.exe
|
|
|
|
- cmd: .\test\parallelaccessstore\parallelaccessstore-test.exe
|
|
|
|
- cmd: .\test\blockstore\blockstore-test.exe
|
|
|
|
- cmd: .\test\blobstore\blobstore-test.exe
|
|
|
|
- cmd: .\test\cryfs\cryfs-test.exe
|
|
|
|
#- cmd: .\test\cryfs-cli\cryfs-cli-test.exe
|
2018-11-22 06:46:16 +01:00
|
|
|
|
|
|
|
- cmd: cpack -C %CONFIGURATION% --verbose -G WIX
|
2018-09-27 04:18:06 +02:00
|
|
|
|
|
|
|
on_failure:
|
|
|
|
- cmd: type C:\projects\cryfs\build\_CPack_Packages\win64\WIX\wix.log
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build/cryfs-*.msi
|
|
|
|
name: CryFS
|