Permalink
Browse files
Try out a collectChecks function for running tests
- Loading branch information
Showing
with
6 additions
and
0 deletions.
-
+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