Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-08-01 18:33:26 +0300
committerRobert Adam <dev@robert-adam.de>2020-08-01 18:33:26 +0300
commitf2689d8bcee07ca8ce85bdb898068f2c8ce898c8 (patch)
tree48336b1271c7ce8ec25eb944fc8ca37b96a83891
parent3a07016b8fb4f902b778c1d74cbb13cab25fa93a (diff)
CI(windows): Potential download speedup
As experienced before, disabling the progress monitor for web-requests in PowerShell can drastically increase the download speed. The newer script however only used to trick for the main build environment but not for downloading the other stuff (like ASIO SDK). This commit sets the respective preference in the beginning of the script and doesn't reset it anymore so that now all web-requests should benefit from it.
-rw-r--r--.ci/azure-pipelines/install-environment_windows.ps111
1 files changed, 4 insertions, 7 deletions
diff --git a/.ci/azure-pipelines/install-environment_windows.ps1 b/.ci/azure-pipelines/install-environment_windows.ps1
index 0cd923849..513705986 100644
--- a/.ci/azure-pipelines/install-environment_windows.ps1
+++ b/.ci/azure-pipelines/install-environment_windows.ps1
@@ -42,20 +42,17 @@ if (-Not (Test-Path $MUMBLE_ENVIRONMENT_STORE)) {
New-Item $MUMBLE_ENVIRONMENT_STORE -ItemType Directory | Out-Null
}
+# According to https://github.com/PowerShell/PowerShell/issues/2138 disabling the
+# progress bar can significantly increase the speed of Invoke-Web-Request.
+$ProgressPreference = 'SilentlyContinue'
+
if (-Not (Test-Path (Join-Path $MUMBLE_ENVIRONMENT_STORE $MUMBLE_ENVIRONMENT_VERSION))) {
Write-Host "Environment not cached. Downloading..."
$env_url = "$env:MUMBLE_ENVIRONMENT_SOURCE/$MUMBLE_ENVIRONMENT_VERSION.7z"
$env_7z = Join-Path $MUMBLE_ENVIRONMENT_STORE "$MUMBLE_ENVIRONMENT_VERSION.7z";
try {
- # According to https://github.com/PowerShell/PowerShell/issues/2138 disabling the
- # progress bar can significantly increase the speed of Invoke-Web-Request.
- $ProgressPreference = 'SilentlyContinue'
-
Invoke-WebRequest -Uri $env_url -OutFile $env_7z
-
- # Reset progress bar
- $ProgressPreference = 'Continue'
} catch {
Write-Host "Failed to download build-environment: $PSItem"
exit 1