rearrange all the ci stuff
This commit is contained in:
30
ci.nix
30
ci.nix
@@ -1,5 +1,27 @@
|
||||
{
|
||||
smoke = import ./tests/smoke/test.nix;
|
||||
pseudofiles = import ./tests/pseudofiles/test.nix;
|
||||
pppoe = import ./tests/pppoe/test.nix;
|
||||
}
|
||||
nixpkgs
|
||||
, unstable
|
||||
, liminix
|
||||
, ... }:
|
||||
let
|
||||
inherit (builtins) map;
|
||||
pkgs = (import nixpkgs {});
|
||||
inherit (pkgs.lib.attrsets) genAttrs;
|
||||
devices = [ "qemu" "gl-ar750" ];
|
||||
vanilla = ./vanilla-configuration.nix;
|
||||
for-device = name:
|
||||
(import liminix {
|
||||
inherit nixpkgs;
|
||||
device = import (liminix + "/devices/${name}");
|
||||
liminix-config = vanilla;
|
||||
}).outputs.default;
|
||||
tests = import ./tests/ci.nix;
|
||||
jobs =
|
||||
(genAttrs devices (name: for-device name)) // tests // {
|
||||
with-unstable = (import liminix {
|
||||
nixpkgs = unstable;
|
||||
device = import (liminix + "/devices/qemu");
|
||||
liminix-config = vanilla;
|
||||
}).outputs.default;
|
||||
};
|
||||
in builtins.trace jobs jobs
|
||||
|
Reference in New Issue
Block a user