l krops: prepare .ci for buildbot

This commit is contained in:
lassulus 2018-09-07 17:40:10 +02:00
parent 293dada1cd
commit f21ec7612c

View File

@ -30,13 +30,11 @@ in {
# usage: $(nix-build --no-out-link --argstr name HOSTNAME -A test) # usage: $(nix-build --no-out-link --argstr name HOSTNAME -A test)
test = pkgs.krops.writeTest "${name}-test" { test = pkgs.krops.writeTest "${name}-test" {
source = source { test = true; }; source = source { test = true; };
target = "${lib.getEnv "HOME"}/tmp/${name}-krops-test-src"; target = "${lib.getEnv "HOME"}/tmp/${name}-stockholm-test";
}; };
ci = map (host: ci = pkgs.krops.writeTest "${name}-test" {
pkgs.krops.writeTest "${host.name}-test" {
source = source { test = true; }; source = source { test = true; };
target = "${lib.getEnv "TMPDIR"}/lass/${host.name}"; target = "${lib.getEnv "HOME"}/stockholm-build";
} };
) (lib.filter (host: lib.getAttr "ci" host && host.owner == "lass") (lib.attrValues config.krebs.hosts));
} }