mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 21:14:33 +03:00
run all tests on ci
This commit is contained in:
parent
83fb8f661e
commit
0ffaac7913
2
ci.nix
2
ci.nix
@ -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");
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
8
tests/default.nix
Normal file
8
tests/default.nix
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user