2018-09-16 17:21:39 -07:00
image :
2019-11-02 12:05:04 -07:00
- Visual Studio 2019
#- Visual Studio 2019 Preview
2018-09-16 01:17:50 -07:00
platform :
2018-09-16 17:21:39 -07:00
- x64
2018-09-18 23:53:06 -07:00
- x86
2019-01-24 00:42:58 -08:00
#- Any CPU
2018-09-16 01:17:50 -07:00
configuration :
2018-09-27 04:18:06 +02:00
- Debug
- RelWithDebInfo
2019-01-20 20:20:18 -08:00
- Release
2018-09-16 01:17:50 -07:00
2018-09-16 17:21:39 -07:00
version : '{branch}-{build}'
init :
2018-09-17 22:03:03 -07:00
- echo %NUMBER_OF_PROCESSORS%
2018-09-16 17:21:39 -07:00
- echo %PLATFORM%
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
2019-01-20 03:20:16 -08:00
- set arch=32
- if "%PLATFORM%"=="x64" ( set arch=64)
2019-10-31 23:50:55 -07:00
- set VisualStudioVersion=2019
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019 Preview" ( set VisualStudioVersion=Preview)
2019-01-20 03:20:16 -08:00
- cmd : call "C:\Program Files (x86)\Microsoft Visual Studio\%VisualStudioVersion%\Community\VC\Auxiliary\Build\vcvars%arch%.bat"
2018-09-16 17:21:39 -07:00
2018-09-16 01:17:50 -07:00
install :
2019-03-29 00:35:31 -07:00
- choco install -y dokany --version 1.2.1.2000 --installargs INSTALLDEVFILES=1
2019-10-19 18:33:29 -07:00
- pip install conan
- conan --version
2018-09-16 01:17:50 -07:00
- cmake --version
2019-10-19 18:33:29 -07:00
- conan profile new default --detect
# note: Conan misdetects our x86 CI platform as x64, fix that
- if "%PLATFORM%"=="x86" ( conan profile update settings.arch=x86 default )
- if "%PLATFORM%"=="x86" ( conan profile update settings.arch_build=x86 default )
2018-09-16 01:17:50 -07:00
build_script :
- cmd : mkdir build
- cmd : cd build
2019-01-23 16:45:30 -08:00
# note: The cmake+ninja workflow requires us to set build type in both cmake commands ('cmake' and 'cmake --build'), otherwise the cryfs.exe will depend on debug versions of the visual studio c++ runtime (i.e. msvcp140d.dll)
2020-02-23 12:21:30 -08:00
# note: The CMAKE_SYSTEM_VERSION variable is set to 10.0.18362.0 because as of this writing, appveyor uses 10.0.17763.0 and that has a bug, see https://developercommunity.visualstudio.com/content/problem/343296/sdk-and-experimentalpreprocessor.html
2020-02-24 00:51:48 -08:00
- cmd : cmake .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_TESTING=on -DDOKAN_PATH="C:/Program Files/Dokan/DokanLibrary-1.2.1" -DCMAKE_SYSTEM_VERSION="10.0.18362.0"
2018-09-16 01:17:50 -07:00
- cmd : cmake --build . --config %CONFIGURATION%
2019-10-19 18:33:29 -07:00
- cmd : .\bin\gitversion-test.exe
2019-01-20 03:21:20 -08:00
# cpp-utils-test disables ThreadDebuggingTest_ThreadName.*_thenIsCorrect because the appveyor image is too old to support the API needed for that
2019-10-19 18:33:29 -07:00
- cmd : .\bin\cpp-utils-test.exe --gtest_filter=-ThreadDebuggingTest_ThreadName.*_thenIsCorrect
#- cmd: .\bin\fspp-test.exe
- cmd : .\bin\parallelaccessstore-test.exe
- cmd : .\bin\blockstore-test.exe
- cmd : .\bin\blobstore-test.exe
- cmd : .\bin\cryfs-test.exe
#- cmd: .\bin\cryfs-cli-test.exe
2018-11-21 21:46:16 -08: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