Skip to content

Commit

Permalink
CI: Use the codecov cli on mac runners
Browse files Browse the repository at this point in the history
Rather than disable uploading, use the cli as suggested in
codecov issue codecov/uploader#1687
  • Loading branch information
mjpieters committed Nov 30, 2024
1 parent 8f1b41b commit aaaa72e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .azure-pipelines/stage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ stages:
condition: and(eq(variables.operatingSystem, 'Linux'), variables['codecov.token'], succeeded())
displayName: "Upload coverage reports (Linux)"
# Codecov-cli binary is incompatible with macos 12, it appears.
# - bash: |
# curl -Os https://uploader.codecov.io/latest/macos/codecov
# chmod +x codecov
# ./codecov -t ${CODECOV_TOKEN} -f coverage.xml -X gcov
# env:
# CODECOV_TOKEN: $(codecov.token)
# condition: and(eq(variables.operatingSystem, 'Mac'), variables['codecov.token'], succeeded())
# displayName: "Upload coverage reports (MacOS)"
# On mac runners, use the codecov cli tool instead of the uploader, see https://github.com/codecov/uploader/issues/1687
- bash: |
curl -Os https://cli.codecov.io/latest/macos/codecov
chmod +x codecov
./codecov upload-process -t ${CODECOV_TOKEN} -f coverage.xml -X gcov
env:
CODECOV_TOKEN: $(codecov.token)
condition: and(eq(variables.operatingSystem, 'Mac'), variables['codecov.token'], succeeded())
displayName: "Upload coverage reports (MacOS)"
- pwsh: |
$ProgressPreference = 'SilentlyContinue'
Expand Down

0 comments on commit aaaa72e

Please sign in to comment.