ci/windows: Make Chocolatey installs more reliable
authorDaniel Stone <daniels@collabora.com>
Thu, 16 Apr 2020 22:31:47 +0000 (23:31 +0100)
committerDaniel Stone <daniels@collabora.com>
Sun, 19 Apr 2020 11:55:02 +0000 (12:55 +0100)
commite6c7bdc85138abe00bc9db355f302778926b38e5
treee19de329036826c062aaacfa07c877be6772e581
parentec1b96fdc8bccaf2c1a4e1e3cca32b4aacbe4f7c
ci/windows: Make Chocolatey installs more reliable

Chocolatey installs depend on downloading binaries from SourceForge,
which is an unreliable host: container builds often fail because it
cannot pick up winflexbison.

Add a loop to retry chocolatey installs if any installs have failed, and
ensure Python is in the accessible PowerShell path rather than relying
on the path being externally refreshed.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4631>
.gitlab-ci/windows/mesa_deps.ps1