]> granicus.if.org Git - graphviz/commitdiff
Make the Windows pipeline stop on PowerShell cmdlet failure
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 14 Aug 2020 12:55:30 +0000 (14:55 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 18 Aug 2020 08:37:50 +0000 (10:37 +0200)
Note that this doesn't affect failures from .exe programs (but that is
already handled by the GitLab Shared Windows Runner). See
https://stackoverflow.com/questions/9948517/how-to-stop-a-powershell-script-on-the-first-error.

.gitlab-ci.yml

index bca8d9ac65373bcce9ad373c56b3b94dc2642c4f..fd3b345bb10e462787083300fa277c9fcfa9414d 100644 (file)
@@ -56,6 +56,7 @@ portable-source:
     stage: build
     needs: []
     script:
+        - $ErrorActionPreference = "Stop"
         # Toolchain definitions
         - if($env:platform -eq "x64") {
             $TARGET_ARCH = "x64";