forked from softhsm/SoftHSMv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
82 lines (69 loc) · 3.15 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: 2.6.0-{build}
configuration: Release
platform:
- x86
- x64
init:
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
$env:MSBUILD_PLATFORM="Win32"
$env:ENV_PLATFORM="x86"
$env:CONFIGURE_OPTIONS="disable-debug $env:ADDITIONAL_CONFIGURE_OPTIONS"
} Else {
$env:VCVARS_PLATFORM="amd64"
$env:MSBUILD_PLATFORM="x64"
$env:ENV_PLATFORM="x64"
$env:CONFIGURE_OPTIONS="enable-64bit disable-debug $env:ADDITIONAL_CONFIGURE_OPTIONS"
}
$CURRENT_DIR_PATH = (Get-Item -Path ".\" -Verbose).FullName
$env:BUILD_DIR = Join-Path $CURRENT_DIR_PATH build
$env:CRYPTO_PACKAGE= "$env:CRYPTO_PACKAGE_NAME-$env:ENV_PLATFORM.zip"
$env:CRYPTO_PACKAGE_PATH = Join-Path $env:BUILD_DIR "$env:CRYPTO_PACKAGE_NAME-$env:ENV_PLATFORM"
$env:CPPUNIT_VERSION_NAME = "CppUnit-1.13.2"
$env:CPPUNIT_PACKAGE_NAME = "cppunit-1.13.2"
$env:CPPUNIT_PACKAGE = "$env:CPPUNIT_PACKAGE_NAME-$env:ENV_PLATFORM.zip"
$env:PYTHON_PATH = Join-Path $env:BUILD_DIR python
$env:CPPUNIT_PATH = Join-Path $env:BUILD_DIR "$env:CPPUNIT_PACKAGE_NAME-$env:ENV_PLATFORM"
$env:PYTHON_EXE = Join-Path $env:PYTHON_PATH python.exe
$env:RELEASE_DIR=Join-Path $env:BUILD_DIR "SoftHSMv2-$env:ENV_PLATFORM"
$env:CONFIGURE_OPTIONS = "$env:CONFIGURE_OPTIONS with-crypto-backend=$env:CRYPTO_BACKEND with-$env:CRYPTO_BACKEND=$env:CRYPTO_PACKAGE_PATH\ with-cppunit=$env:CPPUNIT_PATH\"
cache:
- C:/Tools/vcpkg/installed/
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- CRYPTO_BACKEND: openssl
ADDITIONAL_CONFIGURE_OPTIONS: disable-eddsa disable-gost with-crypto-backend=openssl
DB_BACKEND: OFF
- CRYPTO_BACKEND: openssl
ADDITIONAL_CONFIGURE_OPTIONS: disable-eddsa disable-gost with-crypto-backend=openssl
DB_BACKEND: ON
- CRYPTO_BACKEND: botan
ADDITIONAL_CONFIGURE_OPTIONS: disable-eddsa disable-gost with-crypto-backend=botan
DB_BACKEND: OFF
install:
# Update vcpkg
- cd c:\tools\vcpkg
- cmd: git fetch
- cmd: bootstrap-vcpkg.bat
- cmd: vcpkg update
- cmd: vcpkg upgrade --no-dry-run
- cmd: vcpkg install sqlite3:x86-windows
- cmd: vcpkg install openssl-windows:x86-windows
- cmd: vcpkg install openssl-windows:x64-windows
- cmd: vcpkg install botan:x86-windows
- cmd: vcpkg install cppunit:x86-windows
- cmd: vcpkg integrate install
build_script:
- cmd: if exist "C:\projects\softhsmv2\build" rmdir /s /q C:\projects\softhsmv2\build
- cmd: mkdir C:\projects\softhsmv2\build
- cmd: cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake -DWITH_OBJECTSTORE_BACKEND_DB=%DB_BACKEND% -DWITH_CRYPTO_BACKEND=%CRYPTO_BACKEND% -DBUILD_TESTS=ON -DDISABLE_NON_PAGED_MEMORY=ON -DENABLE_GOST=OFF
- cmd: cmake -Bbuild --build . --config RelWithDebInfo
- cmd: ctest -Bbuild -C RelWithDebInfo --progress --verbose
- cmd: cmake -Bbuild -DCMAKE_INSTALL_PREFIX=build/SoftHSMv2-$(Platform) -DCMAKE_INSTALL_CONFIG_NAME=RelWithDebInfo -P cmake_install.cmake
- cmd: IF "%ENV_PLATFORM%"=="x86" ( CD win32\Release ) ELSE ( CD win32\x64\Release)
test: on
artifacts:
- path: build/SoftHSMv2-$(Platform)
name: SoftHSMv2-$(PACKAGE_VERSION_NAME)-$(Platform)