2 # Download and install MSYS2, needed primarily for the test suite (run-make) but
3 # also used by the MinGW toolchain for assembling things.
5 # FIXME: we should probe the default azure image and see if we can use the MSYS2
6 # toolchain there. (if there's even one there). For now though this gets the job
12 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
15 # Pre-followed the api/v2 URL to the CDN since the API can be a bit flakey
16 curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg > \
18 curl -sSL https://packages.chocolatey.org/chocolatey-core.extension.1.3.5.1.nupkg > \
19 chocolatey-core.extension.nupkg
20 choco install -s . msys2 \
21 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
22 rm msys2.nupkg chocolatey-core.extension.nupkg
23 mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"
24 ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin"