Skip to content

Commit

Permalink
ci: switch to codecov cli on appveyor
Browse files Browse the repository at this point in the history
This change replaces the legacy codecov uploader on macos with a
specific codecov-cli (the uploader's modern replacement) version that is known
to support several CPUs.
Fixes datalad#756
  • Loading branch information
adswa committed Sep 10, 2024
1 parent 761f232 commit ca935d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ build: off

environment:
# unless indicated otherwise, we test datalad_next
DTS: datalad_next
DTS: datalad_next.commands
# SSH testing is done via a side-loaded container that provides a POSIX/SSHable
# server environment
DATALAD_TESTS_DOCKER_SSHD_SECKEY_DOWNLOADURL: https://ci.appveyor.com/api/projects/mih/datalad-ci-docker-containers/artifacts/recipes/sshd/id_rsa?job=sshd
Expand Down Expand Up @@ -118,7 +118,7 @@ environment:
PY: 3.8
INSTALL_GITANNEX: git-annex
DATALAD_LOCATIONS_SOCKETS: /Users/appveyor/DLTMP/sockets
CODECOV_BINARY: https://uploader.codecov.io/latest/macos/codecov
CODECOV_BINARY: https://cli.codecov.io/v0.7.4/macos/codecov
DATALAD_TESTS_SSH: 1
# no docker on Mac, we log into self
# 'test_publish_target_url' relies git-annex being installed on the
Expand Down Expand Up @@ -333,7 +333,8 @@ for:
- python -m coverage xml
- "curl -Os $CODECOV_BINARY"
- chmod +x codecov
- ./codecov
# the do-upload subcommand seems to work for the codecov-cli and legacy uploader
- ./codecov do-upload

on_finish:
# conditionally block the exit of a CI run for direct debugging
Expand Down

0 comments on commit ca935d5

Please sign in to comment.