forked from winfsp/winspd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
36 lines (31 loc) · 1.68 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
version: '{build}'
environment:
matrix:
- CONFIGURATION: Debug
- CONFIGURATION: Release
install:
- appveyor AddMessage "Change boot configuration and reboot" -Category Information
- bcdedit /set testsigning on
- verifier /standard /driver winspd-x64.sys
- reg add HKLM\SYSTEM\CurrentControlSet\Control\StorPort\Verifier /v VerifyLevel /t REG_DWORD /d 1 /f
- if exist %SystemRoot%\memory.dmp del %SystemRoot%\memory.dmp
- ps: Restart-Computer -Force
- ps: Start-Sleep -s 60
build_script:
- appveyor AddMessage "Reboot complete" -Category Information
- tools\build.bat %CONFIGURATION%
test_script:
- appveyor DownloadFile http://www.secfs.net/Test.Device.Storage.zip && 7z x Test.Device.Storage.zip
- appveyor DownloadFile http://www.secfs.net/TAEF.zip && 7z x TAEF.zip
- start /wait msiexec /i "Test.Device.Storage\HCK Device.Storage Content-x86_en-us.msi" /qn
- start /wait msiexec /i "TAEF\HCK TAEF Tools-x86_en-us.msi" /qn
- net stop shellhwdetection
- '"C:\Program Files (x86)\Windows Kits\10\bin\x64\certmgr.exe" /add /c build\VStudio\build\%CONFIGURATION%\winspd-x64.cer /s /r localMachine root'
- '"C:\Program Files (x86)\Windows Kits\10\bin\x64\certmgr.exe" /add /c build\VStudio\build\%CONFIGURATION%\winspd-x64.cer /s /r localMachine TrustedPublisher'
- '"C:\Program Files (x86)\Windows Kits\10\Tools\x64\devcon.exe" install build\VStudio\build\%CONFIGURATION%\winspd-x64.inf root\winspd'
- tools\run-tests.bat %CONFIGURATION%
- '"C:\Program Files (x86)\Windows Kits\10\Tools\x64\devcon.exe" remove root\winspd'
- if exist %SystemRoot%\memory.dmp exit 1
on_finish:
- if exist %SystemRoot%\memory.dmp (7z a memory.dmp.zip %SystemRoot%\memory.dmp && appveyor PushArtifact memory.dmp.zip)
- verifier /query