ci: detect Windows installer build failures
authorVincent Fu <vincentfu@gmail.com>
Tue, 15 Feb 2022 13:30:30 +0000 (13:30 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Feb 2022 17:15:11 +0000 (10:15 -0700)
When the Windows installer build fails, the build script actually
continues running and does not detect the failure. Use ls to determine
if the MSI file exists in order to detect whether or not the installer
build succeeded.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/r/20220215133027.931-1-vincent.fu@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
.appveyor.yml

index 42b79958d46f20bb667a7c7049dde670aab791ec..b94eefe318e46393c5ca75a54d54456c5558f707 100644 (file)
@@ -44,6 +44,7 @@ after_build:
   - file.exe fio.exe
   - make.exe test
   - 'cd os\windows && dobuild.cmd %ARCHITECTURE% && cd ..'
+  - ls.exe ./os/windows/*.msi
   - ps: Get-ChildItem .\os\windows\*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName fio.msi }
 
 test_script: