@marcel91200 / caddy Mirror · read-only / commits / 19e834cf
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

v2 ci: speed up some of powershell's processes (#2818)

* v2: speed up some of powershell's processes * v2-ci: downloading latest Go on Windows isn't slow anymore, so update the log message accordingly * v2: CI: use 7z on Windows instead of Expand-Archive

Mohammed Al Sahaf committed Oct 17, 2019 at 23:58 UTC 19e834cf36ed757738ff7504eb8b3fff45f67a79
1 file changed +6 -3
azure-pipelines.yml
+6 -3
@@ -56,11 +56,14 @@ steps:
56 condition: eq( variables['Agent.OS'], 'Darwin' )
57 displayName: Install Go on macOS
58
59 +# The low performance is partly due to PowerShell's attempt to update the progress bar. Disabling it speeds up the process.
60 +# Reference: https://github.com/PowerShell/PowerShell/issues/2138
61 - powershell: |
60 - Write-Host "Downloading Go... (please be patient, I am very slow)"
62 + $ProgressPreference = 'SilentlyContinue'
63 + Write-Host "Downloading Go..."
64 (New-Object System.Net.WebClient).DownloadFile("https://dl.google.com/go/$(LATEST_GO).windows-amd64.zip", "$(LATEST_GO).windows-amd64.zip")
65 Write-Host "Extracting Go... (I'm slow too)"
63 - Expand-Archive "$(LATEST_GO).windows-amd64.zip" -DestinationPath "$(gorootDir)"
66 + 7z x "$(LATEST_GO).windows-amd64.zip" -o"$(gorootDir)"
67 condition: eq( variables['Agent.OS'], 'Windows_NT' )
68 displayName: Install Go on Windows
69
@@ -88,8 +91,8 @@ steps:
91 workingDirectory: '$(modulePath)'
92 displayName: Get dependencies
93
94 +# its behavior is governed by .golangci.yml
95 - script: |
92 - # its behavior is governed by .golangci.yml
96 (golangci-lint run --out-format junit-xml) > test-results/lint-result.xml
97 exit 0
98 workingDirectory: '$(modulePath)'