Skip to content

Commit aa3231b

Browse files
committed
Fix azure template for codecov
1 parent 62d4cdc commit aa3231b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

azure-templates.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
displayName: run test
5050
5151
- bash: |
52-
curl -Os https://uploader.codecov.io/latest/linux/codecov
52+
curl -Os https://uploader.codecov.io/latest/${{parameters.os}}/codecov
5353
chmod +x codecov
5454
./codecov -t $codecov_token
5555
env:
@@ -58,7 +58,9 @@ jobs:
5858
displayName: codecov upload on Linux/Darwin
5959
6060
- powershell: |
61-
codecov -t "$(CODECOV_TOKEN)"
61+
$ProgressPreference = 'SilentlyContinue'
62+
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
63+
.\codecov.exe -t ${CODECOV_TOKEN}
6264
condition: eq( variables['Agent.OS'], 'Windows_NT' )
6365
displayName: codecov upload on Windows
6466

0 commit comments

Comments
 (0)