mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 12:36:01 +01:00
This adds the necessary infrastructure to collect code coverage in CI, which could be useful to look at munually or track consistently via something like codecov. Co-authored-by: Jade Lovelace <lix@jade.fyi>
16 lines
400 B
Nix
16 lines
400 B
Nix
{
|
|
nixFlake ? builtins.getFlake ("git+file://" + toString ../../..),
|
|
system ? builtins.currentSystem,
|
|
pkgs ? nixFlake.inputs.nixpkgs.legacyPackages.${system},
|
|
stdenv ? "stdenv",
|
|
componentTestsPrefix ? "",
|
|
withInstrumentation ? false,
|
|
}@args:
|
|
import ./. (
|
|
args
|
|
// {
|
|
getStdenv = p: p.${stdenv};
|
|
withSanitizers = withInstrumentation;
|
|
withCoverage = withInstrumentation;
|
|
}
|
|
)
|