Open wilzbach opened 7 years ago
That might actually be some work because external testers usually require authentication with coverage services.
Only the CodeCov token would be required.
However at the moment we don't run any of the DMD, druntime or Phobos testsuites and this requires quite some resources.
CircleCi does a good job at this and we even use three parallel runs at DMD now: https://github.com/dlang/dmd/blob/master/.circleci/config.yml (x86, x86_64, x86_64 - pic).
They are all required to improve the overall coverage (see https://github.com/dlang/dmd/pull/7818).
If we ever want to unify this, it's probably easier to move the .circleci/ci.sh
script to tools
and fetch it from each repo.
Generate Coverage report
This should nearly at the end as it messes up the build repositories. It should be something similar to:
CodeCov
Assuming the CodeCov tokens (can be fetched at e.g. https://codecov.io/gh/dlang/phobos/settings) are loaded in the environment something as
CODECOV_TOKEN_PHOBOS
(and similarly for dmd and druntime) like this should work:CodeCov uptime doesn't seem to be perfect, we might want to provide a fallback URL as well - see e.g. https://github.com/dlang/phobos/pull/5140
(though I am not sure what's the proper behavior as the CodeCov API is then probably down as well)