1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-11 12:05:26 +03:00

release.nix: Add testedPlus aggregate job

This includes the whole `tested` job (a simple no-op for hydra), but
adds additional things we want to track success for.

`tested` is for the basic minimum we want to succeed.
`testedPlus` adds more exotic, and less well-tested platforms.
This commit is contained in:
Samuel Dionne-Riel 2021-02-21 15:25:36 -05:00
parent 7332254db2
commit a1b7ba14d7

View File

@ -128,7 +128,7 @@ let
aarch64-linux.rootfs = aarch64-eval.build.rootfs;
};
in
{
rec {
inherit device;
inherit examples-demo;
@ -160,4 +160,32 @@ in
description = "Representative subset of devices that have to succeed.";
};
};
# Uses the constituents of tested
testedPlus = let
hasSystem = name: lib.lists.any (el: el == name) systems;
constituents = tested.constituents
++ lib.optionals (hasSystem "x86_64-linux") [
device.asus-flo.x86_64-linux
]
++ lib.optionals (hasSystem "aarch64-linux") [
]
++ lib.optionals (hasSystem "armv7l-linux") [
device.asus-flo.armv7l-linux
]
;
in
releaseTools.aggregate {
name = "mobile-nixos-tested";
inherit constituents;
meta = {
description = ''
Other targets that may be failing more often than `tested`.
This contains more esoteric and less tested platforms.
For a future release, `testedPlus` shoud also pass.
'';
};
};
}