mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
ci: Try to avoid confusing Enter-VsDevShell with commit messages.
This commit is contained in:
parent
35b941812a
commit
891a2c16e7
|
@ -47,11 +47,10 @@ Write-Output "toolchainfile:$toolchainfile"
|
||||||
$installPath = "C:\BuildTools"
|
$installPath = "C:\BuildTools"
|
||||||
Write-Output "installPath: $installPath"
|
Write-Output "installPath: $installPath"
|
||||||
|
|
||||||
# Note that we can't have $ErrorActionPreference as "Stop" here:
|
# We have to clear this because some characters in a commit message may confuse cmd/Enter-VsDevShell.
|
||||||
# it "errors" (not finding some shared tool because of our mini build tools install)
|
$env:CI_COMMIT_DESCRIPTION = ""
|
||||||
# but the error doesn't matter for our use case.
|
$env:CI_COMMIT_MESSAGE = ""
|
||||||
Write-Output "There may be a harmless error about 'Team Explorer' shown next, which may be ignored."
|
|
||||||
$ErrorActionPreference = 'Continue'
|
|
||||||
Import-Module (Join-Path $installPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
|
Import-Module (Join-Path $installPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
|
||||||
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -no_logo -host_arch=amd64'
|
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -no_logo -host_arch=amd64'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue