mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
feat: improve tests
This commit is contained in:
parent
c01b2fdab2
commit
bf920ab2a6
3 changed files with 15 additions and 9 deletions
|
|
@ -1,6 +1,2 @@
|
||||||
language: node_js
|
language: nix
|
||||||
node_js:
|
script: nix-build -A tests
|
||||||
- v5
|
|
||||||
- v4
|
|
||||||
- '0.12'
|
|
||||||
- '0.10'
|
|
||||||
|
|
|
||||||
14
default.nix
14
default.nix
|
|
@ -98,8 +98,20 @@ let
|
||||||
};
|
};
|
||||||
in pkgs.writeText "resources.json" (builtins.toJSON hashedList);
|
in pkgs.writeText "resources.json" (builtins.toJSON hashedList);
|
||||||
|
|
||||||
|
buildTest = test: version: buildResources {
|
||||||
|
configuration = {
|
||||||
|
require = [test {
|
||||||
|
config.kubernetes.version = version;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
inherit buildResources;
|
inherit buildResources;
|
||||||
|
|
||||||
test = buildResources { configuration = ./test/default.nix; };
|
tests."k8s-1_7" = buildTest ./test/default.nix "1.7";
|
||||||
|
tests."k8s-1_8" = buildTest ./test/default.nix "1.8";
|
||||||
|
tests."k8s-1_9" = buildTest ./test/default.nix "1.9";
|
||||||
|
tests."k8s-1_10" = buildTest ./test/default.nix "1.10";
|
||||||
|
tests."k8s-1_11" = buildTest ./test/default.nix "1.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
kubernetes.version = "1.11";
|
|
||||||
|
|
||||||
require = [./modules.nix ./deployment.nix];
|
require = [./modules.nix ./deployment.nix];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue