mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
* Always include "/nix/store/*" in lcovFilter.
svn path=/nixpkgs/trunk/; revision=13583
This commit is contained in:
parent
f679021d11
commit
2b2bb11f32
3 changed files with 8 additions and 5 deletions
|
@ -11,7 +11,6 @@ rec {
|
|||
|
||||
nixBuild = args: import ./nix-build.nix (
|
||||
{ inherit stdenv;
|
||||
doCoverageAnalysis = false;
|
||||
} // args);
|
||||
|
||||
coverageAnalysis = args: nixBuild (
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{ officialRelease ? false
|
||||
, buildInputs ? []
|
||||
, src, stdenv, autoconf, automake, libtool
|
||||
, ...} @ args:
|
||||
, ... } @ args:
|
||||
|
||||
let
|
||||
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
# it turns on GCC's coverage analysis feature. It then runs `make
|
||||
# check' and produces a coverage analysis report using `lcov'.
|
||||
|
||||
args: with args;
|
||||
{ doCoverageAnalysis ? false
|
||||
, lcovFilter ? []
|
||||
, src, stdenv
|
||||
, ... } @ args:
|
||||
|
||||
stdenv.mkDerivation (
|
||||
|
||||
|
@ -20,8 +23,6 @@ stdenv.mkDerivation (
|
|||
|
||||
showBuildStats = true;
|
||||
|
||||
lcovFilter = ["/nix/store/*"];
|
||||
|
||||
# Hack - swap checkPhase and installPhase (otherwise Stratego barfs).
|
||||
phases = "unpackPhase patchPhase configurePhase buildPhase installPhase checkPhase fixupPhase distPhase ${if doCoverageAnalysis then "coverageReportPhase" else ""}";
|
||||
}
|
||||
|
@ -83,6 +84,9 @@ stdenv.mkDerivation (
|
|||
'' else "";
|
||||
|
||||
|
||||
lcovFilter = ["/nix/store/*"] ++ lcovFilter;
|
||||
|
||||
|
||||
meta = (if args ? meta then args.meta else {}) // {
|
||||
description = if doCoverageAnalysis then "Coverage analysis" else "Native Nix build on ${stdenv.system}";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue