Skip to content
Permalink
Browse files

Try out a collectChecks function for running tests

  • Loading branch information
hamishmack committed Dec 3, 2019
1 parent 6fd1c3a commit a7ff11a83dba7864ca8a5815cf0979a216ca4fda
Showing with 6 additions and 0 deletions.
  1. +6 −0 default.nix
@@ -24,6 +24,11 @@ let
inherit pkgs src jmPkgs;
};

collectChecks = packageSel: haskellPackages:
(lib.mapAttrs (_: package: package.checks // { recurseForDerivations = true; })
(lib.filterAttrs (name: package: (package.isHaskell or false) && packageSel package) haskellPackages))
// { recurseForDerivations = true; };

self = {
inherit pkgs iohkLib src haskellPackages;
inherit jormungandr jormungandr-cli;
@@ -38,6 +43,7 @@ let

tests = collectComponents "tests" isCardanoWallet haskellPackages;
benchmarks = collectComponents "benchmarks" isCardanoWallet haskellPackages;
checks = collectChecks isCardanoWallet haskellPackages;

dockerImage = pkgs.callPackage ./nix/docker.nix {
inherit (self) cardano-wallet-jormungandr;

0 comments on commit a7ff11a

Please sign in to comment.
You can’t perform that action at this time.