File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,21 @@ build_script:
60
60
}
61
61
62
62
# Upload code coverage reports to codecov.io.
63
+ # https://docs.codecov.com/docs/codecov-uploader
63
64
after_test :
64
65
- 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
67
78
68
79
artifacts :
69
80
- path : Artifacts\UnitsNet.zip
You can’t perform that action at this time.
0 commit comments