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
|
2018-10-14 23:33:21 +02: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%
|
|
|
|
- set arch=
|
|
|
|
- if "%PLATFORM%"=="x64" ( set arch= Win64)
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set generator=Visual Studio 12 2013%arch%)
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set generator=Visual Studio 14 2015%arch%)
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set generator=Visual Studio 15 2017%arch%)
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017 Preview" (set generator=Visual Studio 15 2017%arch%)
|
|
|
|
- echo %generator%
|
|
|
|
|
2018-09-16 10:17:50 +02:00
|
|
|
install:
|
|
|
|
- choco install -y dokany --installargs ADDLOCAL=DokanDevFeature,DokanLibBFeature,DokanPDBFeature
|
|
|
|
- cmake --version
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cmd: mkdir build
|
|
|
|
- cmd: cd build
|
2018-09-18 13:35:50 +02:00
|
|
|
- cmd: cmake .. -G "%generator%" -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
|
|
|
# TODO Make build parallel
|
|
|
|
- cmd: cmake --build . --config %CONFIGURATION%
|
|
|
|
- cmd: .\test\gitversion\%CONFIGURATION%\gitversion-test.exe
|
|
|
|
- cmd: cd .\test\cpp-utils\%CONFIGURATION%\ && .\cpp-utils-test.exe && cd ..\..\..
|
|
|
|
#- cmd: .\test\fspp\%CONFIGURATION%\fspp-test.exe
|
|
|
|
- cmd: .\test\parallelaccessstore\%CONFIGURATION%\parallelaccessstore-test.exe
|
|
|
|
- cmd: .\test\blockstore\%CONFIGURATION%\blockstore-test.exe
|
|
|
|
- cmd: .\test\blobstore\%CONFIGURATION%\blobstore-test.exe
|
2018-09-16 13:45:51 +02:00
|
|
|
- cmd: .\test\cryfs\%CONFIGURATION%\cryfs-test.exe
|
2018-09-16 10:17:50 +02:00
|
|
|
#- cmd: .\test\cryfs-cli\%CONFIGURATION%\cryfs-cli-test.exe
|
2018-09-28 08:30:46 +02:00
|
|
|
#- cmd: cpack --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
|