6 - ps: Install-PackageProvider -Name NuGet -Force
7 - ps: Install-Module PsScriptAnalyzer -Force
14 solutionname: PMDK.sln
15 ex_solutionname: Examples.sln
22 if ($Env:CONFIGURATION -eq "Release") {
24 if ($LASTEXITCODE -ne 0) {
27 utils/CHECK_WHITESPACE.ps1
28 if ($LASTEXITCODE -ne 0) {
32 if ($LASTEXITCODE -ne 0) {
35 ./utils/check_sdk_version.py -d .
36 if ($LASTEXITCODE -ne 0) {
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
46 - ps: utils/CREATE-ZIP.ps1 -b $Env:CONFIGURATION
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
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',
65 'byte_fs_dir': 'C:\\temp',
70 'fs_dir_force_pmem': 1,
75 'fail_on_skip': False,
76 'enable_admin_tests': False,
77 }" | out-file "testconfig.py" -encoding utf8
79 if ($Env:CONFIGURATION -eq "Debug") {
80 ./RUNTESTS.ps1 -b debug -o 4m
82 ./RUNTESTS.py -b debug
85 if ($Env:CONFIGURATION -eq "Release") {
86 ./RUNTESTS.ps1 -b nondebug -o 4m
88 ./RUNTESTS.py -b release
94 - path: 'src\x64\*.zip'