mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
run all tests on ci
This commit is contained in:
1 parent
83fb8f661e
commit
0ffaac7913
3 files changed
+12
-4
No files matched your search
@@ -3,6 +3,6 @@ let
|
||||
in {
|
||||
test = pkgs.writeScript "test" ''
|
||||
#!/bin/sh
|
||||
nix-build "${toString ./tests/test.nix}";
|
||||
nix-build "${toString ./tests}";
|
||||
'';
|
||||
}
|
||||
@@ -9,11 +9,11 @@
|
||||
};
|
||||
checks.x86_64-linux = let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
in {
|
||||
in
|
||||
# Run tests: nix flake check -L
|
||||
nixos-test = pkgs.callPackage ./tests/test.nix {
|
||||
import ./tests {
|
||||
inherit pkgs;
|
||||
makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix");
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>
|
||||
, pkgs ? (import <nixpkgs> {})
|
||||
}@args:
|
||||
{
|
||||
luks-lvm = import ./luks-lvm.nix args;
|
||||
mdadm = import ./mdadm.nix args;
|
||||
zfs = import ./zfs.nix args;
|
||||
}
|
||||
Reference in new issue
Block a user