Skip to content

Commit

Permalink
temporary retry around msys2 install
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Dec 23, 2019
1 parent 86f12c1 commit 3a6cd8e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ci/scripts/install-msys2.sh
Expand Up @@ -12,8 +12,10 @@ IFS=$'\n\t'
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"

if isWindows; then
choco install msys2 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"

ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin"
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do
choco install msys2 \
--params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress \
&& mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}" \
&& ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break
done
fi

0 comments on commit 3a6cd8e

Please sign in to comment.