`coverage.sh` used to explicitly specify the commit associated with the
coverage report as a workaround to an issue when uploading without
`CODECOV_TOKEN` from a public Azure pipeline[1]. The workaround is not
required anymore as the uploads now succeeds with the default settings.
The upload to CodeCov probably broke because `$BUILD_SOURCEVERSION` now
points to a local merge commit (PR branch => target branch).
[1] https://github.com/codecov/codecov-bash/issues/287
The CodeCov script needs to be run with a `--login` shell s.t. it has
access to `shasum`,... .
(The previous draft PR was merged with an allowed failure...)
The currently used bash uploader is deprecated and will be removed in
the future[1]. This commit replaces the existing setup with the new
uploader for all currently supported platforms as proposed in [2].
Additional notes:
- FreeBSD support isn't supported yet and keeps using the old uploader
- Moved the new implementation into a dedicated file `source`d by
all coverage CI's (instead of changing each individual configuration)
[1] https://about.codecov.io/blog/codecov-uploader-deprecation-plan
[2] https://about.codecov.io/blog/introducing-codecovs-new-uploader