1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-08-02 03:37:46 +00:00

CI: Add "set -e" to Azure DevOps scripts

Without setting this explicitly in every script, failing script lines in
multiline scripts will not fail the job themselves.
This commit is contained in:
Andrew Kaster 2023-03-19 13:17:36 -06:00 committed by Andrew Kaster
parent 958f9e960d
commit 5b5a76eadd
3 changed files with 14 additions and 0 deletions

View file

@ -64,6 +64,7 @@ jobs:
displayName: "Install NDK $(ndk_version)"
- script: |
set -e
cmake -GNinja -B tools-build \
-DBUILD_LAGOM=OFF \
-DENABLE_LAGOM_CCACHE=ON \
@ -89,6 +90,7 @@ jobs:
- ${{ elseif eq(parameters.fuzzer, 'Fuzz') }}:
- script: |
set -e
cmake -GNinja -B tools-build \
-DBUILD_LAGOM=OFF \
-DENABLE_LAGOM_CCACHE=ON \
@ -109,6 +111,7 @@ jobs:
CCACHE_DIR: '$(SERENITY_CCACHE_DIR)'
- ${{ elseif eq(parameters.fuzzer, 'NoFuzz') }}:
- script: |
set -e
cmake -GNinja -B Build \
-DBUILD_LAGOM=ON \
-DENABLE_LAGOM_CCACHE=ON \
@ -126,6 +129,7 @@ jobs:
CCACHE_DIR: '$(SERENITY_CCACHE_DIR)'
- script: |
set -e
cmake --build .
cmake --install . --prefix $(Build.SourcesDirectory)/Meta/Lagom/Install
displayName: 'Build'
@ -135,6 +139,7 @@ jobs:
- ${{ if and(eq(parameters.fuzzer, 'NoFuzz'), not(eq(parameters.os, 'Android')) ) }}:
- script: |
set -e
ninja test
displayName: 'Test'
workingDirectory: $(Build.SourcesDirectory)/Meta/Lagom/Build