]> git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/appveyor.yml
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / appveyor.yml
1 version: 1.4.{build}
2 os: Visual Studio 2019
3 platform: x64
4
5 install:
6 - ps: Install-PackageProvider -Name NuGet -Force
7 - ps: Install-Module PsScriptAnalyzer -Force
8
9 configuration:
10 - Debug
11 - Release
12
13 environment:
14 solutionname: PMDK.sln
15 ex_solutionname: Examples.sln
16
17 matrix:
18 fast_finish: true
19
20 before_build:
21 - ps: >-
22 if ($Env:CONFIGURATION -eq "Release") {
23 utils/CSTYLE.ps1
24 if ($LASTEXITCODE -ne 0) {
25 exit 1
26 }
27 utils/CHECK_WHITESPACE.ps1
28 if ($LASTEXITCODE -ne 0) {
29 exit 1
30 }
31 utils/ps_analyze.ps1
32 if ($LASTEXITCODE -ne 0) {
33 exit 1
34 }
35 ./utils/check_sdk_version.py -d .
36 if ($LASTEXITCODE -ne 0) {
37 exit 1
38 }
39 }
40
41 build_script:
42 - ps: msbuild src\$Env:solutionname /property:Configuration=$Env:CONFIGURATION /m /v:m
43 - ps: msbuild src\examples\$Env:ex_solutionname /property:Configuration=$Env:CONFIGURATION /m /v:m
44
45 after_build:
46 - ps: utils/CREATE-ZIP.ps1 -b $Env:CONFIGURATION
47
48 test_script:
49 - ps: >-
50 if ($true) {
51 cd src\test
52 md C:\temp
53 echo "`$Env:NON_PMEM_FS_DIR = `"C:\temp`"" >> testconfig.ps1
54 echo "`$Env:PMEM_FS_DIR = `"C:\temp`"" >> testconfig.ps1
55 echo "`$Env:PMEM_FS_DIR_FORCE_PMEM = `"1`"" >> testconfig.ps1
56 echo "`$Env:PMDK_NO_ABORT_MSG = `"1`"" >> testconfig.ps1
57 echo "`$Env:TM = `"1`"" >> testconfig.ps1
58
59 write-output "config = {
60 'unittest_log_level': 1,
61 'cacheline_fs_dir': 'C:\\temp',
62 'force_cacheline': True,
63 'page_fs_dir': 'C:\\temp',
64 'force_page': False,
65 'byte_fs_dir': 'C:\\temp',
66 'force_byte': True,
67 'tm': True,
68 'test_type': 'check',
69 'granularity': 'all',
70 'fs_dir_force_pmem': 1,
71 'keep_going': False,
72 'timeout': '4m',
73 'build': 'debug',
74 'force_enable': None,
75 'fail_on_skip': False,
76 'enable_admin_tests': False,
77 }" | out-file "testconfig.py" -encoding utf8
78
79 if ($Env:CONFIGURATION -eq "Debug") {
80 ./RUNTESTS.ps1 -b debug -o 4m
81 if ($?) {
82 ./RUNTESTS.py -b debug
83 }
84 }
85 if ($Env:CONFIGURATION -eq "Release") {
86 ./RUNTESTS.ps1 -b nondebug -o 4m
87 if ($?) {
88 ./RUNTESTS.py -b release
89 }
90 }
91 }
92
93 artifacts:
94 - path: 'src\x64\*.zip'
95 name: PMDK