rearrange all the ci stuff

This commit is contained in:
Daniel Barlow
2023-02-05 22:38:21 +00:00
parent ebc5d6a3e0
commit 424abc72b8
6 changed files with 45 additions and 29 deletions

30
ci.nix
View File

@@ -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