mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-28 22:08:46 +02:00
tests: use a single link-farm for flake-checks
We need to optimise the buildbot attrs for nix-eval-jobs, however this doesn't make sense for `nix flake check` or `nix flake show`.
This commit is contained in:
parent
278eb40fa7
commit
1463ec64d5
2 changed files with 22 additions and 16 deletions
|
@ -1,7 +1,6 @@
|
|||
# Collects the various test modules in tests/test-sources/ and groups them into a number of test derivations
|
||||
{
|
||||
callTest,
|
||||
helpers,
|
||||
lib ? pkgs.lib,
|
||||
linkFarm,
|
||||
pkgs,
|
||||
|
@ -69,8 +68,8 @@ let
|
|||
};
|
||||
in
|
||||
# We attempt to build & execute all configurations
|
||||
lib.pipe (testFiles ++ [ exampleFiles ]) [
|
||||
(builtins.map (
|
||||
{
|
||||
tests = map (
|
||||
{
|
||||
name,
|
||||
file,
|
||||
|
@ -80,13 +79,5 @@ lib.pipe (testFiles ++ [ exampleFiles ]) [
|
|||
inherit name;
|
||||
path = linkFarm name (builtins.mapAttrs (moduleToTest file) cases);
|
||||
}
|
||||
))
|
||||
(helpers.groupListBySize 10)
|
||||
(lib.imap1 (
|
||||
i: group: rec {
|
||||
name = "test-${toString i}";
|
||||
value = linkFarm name group;
|
||||
}
|
||||
))
|
||||
builtins.listToAttrs
|
||||
]
|
||||
) (testFiles ++ [ exampleFiles ]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue