mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Execute Conan installer synchronously
PowerShell runs .exe's asynchronously by default, unlike all other commands. This behavior creates race condition when conanfile processing starts before conan installation is completed. Addition of "| Out-Null" to installer invocation makes it synchronous. Task-number: QTQAINFRA-998 Change-Id: Ic423514f15886e6ad9eb5c9422dd5382a3362380 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
@@ -4,7 +4,7 @@ $installer = "c:\users\qt\downloads\conan-win_0_12_0.exe"
|
||||
|
||||
Download https://s3-eu-west-1.amazonaws.com/conanio-production/downloads/conan-win_0_12_0.exe http://ci-files01-hki.ci.local/input/conan/conan-win_0_12_0.exe $installer
|
||||
Verify-Checksum $installer "719F30E6EED03149D75CDB28F80A7B873B43FF51"
|
||||
& $installer /DIR=C:\Utils\Conan /VERYSILENT
|
||||
& $installer /DIR=C:\Utils\Conan /VERYSILENT | Out-Null
|
||||
|
||||
[Environment]::SetEnvironmentVariable("CI_CONAN_BUILDINFO_DIR", "C:\Utils\conanbuildinfos", "Machine")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user