Skip to content

Commit 5222655

Browse files
authored
Merge pull request #125 from boostorg/remove-appveyor-codecov-workaround
Remove codecov workarounds
2 parents 5b22d1d + 815b0a1 commit 5222655

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

ci/codecov.ps1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ if (Get-Command "gpg.exe" -ErrorAction SilentlyContinue){
1717
Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe.SHA256SUM.sig -Outfile codecov.exe.SHA256SUM.sig
1818

1919
$ErrorActionPreference = "Continue"
20-
gpg.exe --import codecov.asc
20+
gpg.exe --logger-fd 1 --import codecov.asc
2121
if ($LASTEXITCODE -ne 0) { Throw "Importing the key failed." }
22-
gpg.exe --verify codecov.exe.SHA256SUM.sig codecov.exe.SHA256SUM
22+
gpg.exe --logger-fd 1 --verify codecov.exe.SHA256SUM.sig codecov.exe.SHA256SUM
2323
if ($LASTEXITCODE -ne 0) { Throw "Signature validation of the SHASUM failed." }
2424
If ($(Compare-Object -ReferenceObject $(($(certUtil -hashfile codecov.exe SHA256)[1], "codecov.exe") -join " ") -DifferenceObject $(Get-Content codecov.exe.SHA256SUM)).length -eq 0) {
2525
echo "SHASUM verified"
@@ -31,9 +31,6 @@ if (Get-Command "gpg.exe" -ErrorAction SilentlyContinue){
3131
&"$scriptPath\opencppcoverage.ps1"
3232
if ($LASTEXITCODE -ne 0) { Throw "Coverage collection failed." }
3333

34-
# Workaround for https://github.com/codecov/uploader/issues/525
35-
if("${env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT}" -ne ""){ $env:APPVEYOR_REPO_COMMIT = "${env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT}" }
36-
3734
# Upload
3835
./codecov.exe --name Appveyor --env APPVEYOR_BUILD_WORKER_IMAGE --verbose --nonZero --dir __out --rootDir "${env:BOOST_CI_SRC_FOLDER}"
3936
if ($LASTEXITCODE -ne 0) { Throw "Upload of coverage data failed." }

ci/codecov.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ elif [[ "$1" == "upload" ]]; then
9999
shasum -a 256 -c codecov.SHA256SUM
100100
fi
101101

102-
# Workaround for https://github.com/codecov/uploader/issues/525
103-
if [ -n "$GITHUB_HEAD_REF" ]; then
104-
export GITHUB_SHA=$(git show --no-patch --format="%P" | awk '{print $NF}')
105-
fi
106-
107102
chmod +x codecov
108103
./codecov --verbose --nonZero ${CODECOV_NAME:+--name "$CODECOV_NAME"} -f coverage.info -X search
109104
else

0 commit comments

Comments
 (0)