diff --git a/azure-templates.yml b/azure-templates.yml index 1fa39e0..2cd87bd 100644 --- a/azure-templates.yml +++ b/azure-templates.yml @@ -49,7 +49,7 @@ jobs: displayName: run test - bash: | - curl -Os https://uploader.codecov.io/latest/linux/codecov + curl -Os https://uploader.codecov.io/latest/${{parameters.os}}/codecov chmod +x codecov ./codecov -t $codecov_token env: @@ -58,7 +58,9 @@ jobs: displayName: codecov upload on Linux/Darwin - powershell: | - codecov -t "$(CODECOV_TOKEN)" + $ProgressPreference = 'SilentlyContinue' + Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe + .\codecov.exe -t ${CODECOV_TOKEN} condition: eq( variables['Agent.OS'], 'Windows_NT' ) displayName: codecov upload on Windows