From 9aeb16ac0545fd7ed30d84fa5775aea4244a9571 Mon Sep 17 00:00:00 2001 From: Charles Kinuthia Date: Wed, 22 Mar 2023 16:00:16 +0100 Subject: [PATCH] exit with correct exit code for windows build jobs also replace 'build -j16' with 'build -j' --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b946d39a72..082cf40cab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -288,9 +288,10 @@ build-codec-windows-cmake: - *print-common-info-windows - $winoutdata = $null - cmake -G "Visual Studio 15 2017" . -Bbuild - - cmake --build build -j16 | tee -variable winoutdata + - cmake --build build -j | tee -variable winoutdata - $winoutdata | Out-File $BUILD_OUTPUT -Encoding Utf8 - - ("& python ci/check_for_warnings.py '$BUILD_OUTPUT'", "exit $LASTEXITCODE") | Invoke-Expression + - ("& python ci/check_for_warnings.py '$BUILD_OUTPUT'") | Invoke-Expression + - ("exit $LASTEXITCODE") | Invoke-Expression build-codec-windows-msbuild: extends: @@ -301,7 +302,8 @@ build-codec-windows-msbuild: - $winoutdata = $null - MSBuild.exe .\Workspace_msvc\Workspace_msvc.sln /property:Configuration=Debug | tee -variable winoutdata - $winoutdata | Out-File $BUILD_OUTPUT -Encoding Utf8 - - ("& python ci/check_for_warnings.py '$BUILD_OUTPUT'", "exit $LASTEXITCODE") | Invoke-Expression + - ("& python ci/check_for_warnings.py '$BUILD_OUTPUT'") | Invoke-Expression + - ("exit $LASTEXITCODE") | Invoke-Expression # --------------------------------------------------------------- # Test jobs for merge requests -- GitLab