mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 06:18:50 +00:00
ci/win: don't use lastexitcode hack on mingw build
The heck is for MSVC builds to workaround msbuild error detection for cmake.
This commit is contained in:
18
ci/build.ps1
18
ci/build.ps1
@@ -97,15 +97,21 @@ bin\nvim --version ; exitIfFailed
|
|||||||
|
|
||||||
# Functional tests
|
# Functional tests
|
||||||
# The $LastExitCode from MSBuild can't be trusted
|
# The $LastExitCode from MSBuild can't be trusted
|
||||||
$failed = $false
|
if ($compiler -eq 'MSVC') {
|
||||||
# Temporarily turn off tracing to reduce log file output
|
$failed = $false
|
||||||
Set-PSDebug -Off
|
# Temporarily turn off tracing to reduce log file output
|
||||||
cmake --build . --config $cmakeBuildType --target functionaltest -- $cmakeGeneratorArgs |
|
Set-PSDebug -Off
|
||||||
|
cmake --build . --config $cmakeBuildType --target functionaltest -- $cmakeGeneratorArgs |
|
||||||
foreach { $failed = $failed -or
|
foreach { $failed = $failed -or
|
||||||
$_ -match 'Running functional tests failed with error'; $_ }
|
$_ -match 'Running functional tests failed with error'; $_ }
|
||||||
Set-PSDebug -Trace 1
|
Set-PSDebug -Trace 1
|
||||||
if ($failed) {
|
if ($failed) {
|
||||||
exit $LastExitCode
|
exit $LastExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cmake --build . --config $cmakeBuildType --target functionaltest -- $cmakeGeneratorArgs
|
||||||
|
exitIfFailed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user