libcryfs/appveyor.yml

62 lines
2.2 KiB
YAML
Raw Normal View History

2018-09-17 02:21:39 +02:00
image:
2019-11-02 20:05:04 +01:00
- Visual Studio 2019
#- Visual Studio 2019 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
2019-01-24 09:42:58 +01:00
#- Any CPU
2018-09-16 10:17:50 +02:00
configuration:
- 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%
- set arch=32
- if "%PLATFORM%"=="x64" ( set arch=64)
- set VisualStudioVersion=2019
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019 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:
- choco install -y dokany --version 1.2.1.2000 --installargs INSTALLDEVFILES=1
- pip install conan
- conan --version
2018-09-16 10:17:50 +02:00
- cmake --version
- 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 10:17:50 +02:00
build_script:
- cmd: mkdir build
- cmd: cd build
# 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)
- cmd: conan install .. -s build_type=%CONFIGURATION% --build=missing
- cmd: cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_TESTING=on -DDOKAN_PATH="C:/Program Files/Dokan/DokanLibrary-1.2.1"
2018-09-16 10:17:50 +02:00
- cmd: cmake --build . --config %CONFIGURATION%
- cmd: .\bin\gitversion-test.exe
# cpp-utils-test disables ThreadDebuggingTest_ThreadName.*_thenIsCorrect because the appveyor image is too old to support the API needed for that
- 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-22 06:46:16 +01:00
- cmd: cpack -C %CONFIGURATION% --verbose -G WIX
on_failure:
- cmd: type C:\projects\cryfs\build\_CPack_Packages\win64\WIX\wix.log
artifacts:
- path: build/cryfs-*.msi
name: CryFS