mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 10:14:31 +02:00
tests: use a nested attrset for buildbot
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`. Now that we aren't using the `checks` output, we don't _need_ to restrict ourselves to a flat set of test derivations anymore. This also simplifies our `tests` command, and means we no longer need to pre-compute the test attr names.
This commit is contained in:
parent
1463ec64d5
commit
db7c5364a5
3 changed files with 12 additions and 38 deletions
|
@ -61,12 +61,12 @@ let
|
|||
# Combined into a single link-farm derivation
|
||||
mainDrv.tests = linkFarm "tests" main;
|
||||
|
||||
# Grouped as a number of link-farms in the form { test-1, test-2, ... test-N }
|
||||
mainGrouped = lib.pipe main [
|
||||
# Grouped as a number of link-farms in the form { tests = { group-1, group-2, ... group-N }; }
|
||||
mainGrouped.tests = lib.pipe main [
|
||||
(helpers.groupListBySize 10)
|
||||
(lib.imap1 (
|
||||
i: group: rec {
|
||||
name = "test-${toString i}";
|
||||
name = "group-${toString i}";
|
||||
value = linkFarm name group;
|
||||
}
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue