ci/windows: add back build-error detection
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 8 Jun 2022 16:07:43 +0000 (18:07 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Jun 2022 12:36:59 +0000 (12:36 +0000)
This was accidentally broken while refactoring the script.

Fixes: bf3c772e5e5 ("ci: Improve vs2019 mesa_build.ps1 for remove the need of cmd.exe")
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16965>

.gitlab-ci/windows/mesa_build.ps1

index 8850692..6c0ebab 100644 (file)
@@ -45,8 +45,13 @@ meson --default-library=shared -Dzlib:default_library=static --buildtype=release
 -Dbuild-tests=true -Dwerror=true -Dwarning_level=2 -Dzlib:warning_level=1 -Dlibelf:warning_level=1 `
 $sourcedir
 
-ninja install -j32
-meson test --num-processes 32
+if ($?) {
+  ninja install -j32
+}
+
+if ($?) {
+  meson test --num-processes 32
+}
 
 $buildstatus = $?
 Pop-Location