Skip to content

Commit 97436d1

Browse files
committed
Upgrade codecov uploader script
1 parent b008134 commit 97436d1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

appveyor.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,21 @@ build_script:
6060
}
6161
6262
# Upload code coverage reports to codecov.io.
63+
# https://docs.codecov.com/docs/codecov-uploader
6364
after_test:
6465
- ps: |
65-
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
66-
bash Build/codecov.sh -s "Artifacts/Coverage" -t $env:codecov_upload_token
66+
$ProgressPreference = 'SilentlyContinue'
67+
Invoke-WebRequest -Uri https://keybase.io/codecovsecurity/pgp_keys.asc -OutFile codecov.asc
68+
gpg.exe --import codecov.asc
69+
70+
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
71+
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe.SHA256SUM -Outfile codecov.exe.SHA256SUM
72+
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe.SHA256SUM.sig -Outfile codecov.exe.SHA256SUM.sig
73+
74+
gpg.exe --verify codecov.exe.SHA256SUM.sig codecov.exe.SHA256SUM
75+
If ($(Compare-Object -ReferenceObject $(($(certUtil -hashfile codecov.exe SHA256)[1], "codecov.exe") -join " ") -DifferenceObject $(Get-Content codecov.exe.SHA256SUM)).length -eq 0) { echo "SHASUM verified" } Else {exit 1}
76+
77+
.\codecov.exe "Artifacts/Coverage" -t $env:codecov_upload_token
6778
6879
artifacts:
6980
- path: Artifacts\UnitsNet.zip

0 commit comments

Comments
 (0)