diff --git a/ci/codecov.ps1 b/ci/codecov.ps1 index 6c105d5..933c1bc 100644 --- a/ci/codecov.ps1 +++ b/ci/codecov.ps1 @@ -17,9 +17,9 @@ if (Get-Command "gpg.exe" -ErrorAction SilentlyContinue){ Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe.SHA256SUM.sig -Outfile codecov.exe.SHA256SUM.sig $ErrorActionPreference = "Continue" - gpg.exe --import codecov.asc + gpg.exe --logger-fd 1 --import codecov.asc if ($LASTEXITCODE -ne 0) { Throw "Importing the key failed." } - gpg.exe --verify codecov.exe.SHA256SUM.sig codecov.exe.SHA256SUM + gpg.exe --logger-fd 1 --verify codecov.exe.SHA256SUM.sig codecov.exe.SHA256SUM if ($LASTEXITCODE -ne 0) { Throw "Signature validation of the SHASUM failed." } 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" @@ -31,9 +31,6 @@ if (Get-Command "gpg.exe" -ErrorAction SilentlyContinue){ &"$scriptPath\opencppcoverage.ps1" if ($LASTEXITCODE -ne 0) { Throw "Coverage collection failed." } -# Workaround for https://github.com/codecov/uploader/issues/525 -if("${env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT}" -ne ""){ $env:APPVEYOR_REPO_COMMIT = "${env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT}" } - # Upload ./codecov.exe --name Appveyor --env APPVEYOR_BUILD_WORKER_IMAGE --verbose --nonZero --dir __out --rootDir "${env:BOOST_CI_SRC_FOLDER}" if ($LASTEXITCODE -ne 0) { Throw "Upload of coverage data failed." } diff --git a/ci/codecov.sh b/ci/codecov.sh index ccadb18..1db3068 100755 --- a/ci/codecov.sh +++ b/ci/codecov.sh @@ -99,11 +99,6 @@ elif [[ "$1" == "upload" ]]; then shasum -a 256 -c codecov.SHA256SUM fi - # Workaround for https://github.com/codecov/uploader/issues/525 - if [ -n "$GITHUB_HEAD_REF" ]; then - export GITHUB_SHA=$(git show --no-patch --format="%P" | awk '{print $NF}') - fi - chmod +x codecov ./codecov --verbose --nonZero ${CODECOV_NAME:+--name "$CODECOV_NAME"} -f coverage.info -X search else