summaryrefslogtreecommitdiffstats
path: root/jeschli
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-09-09 10:23:20 +0200
committertv <tv@krebsco.de>2018-09-09 10:25:02 +0200
commitdf809dca51b2a4037449d626e14a75aa91be7b3a (patch)
tree1ed7889762e67d92c880d20315e8f3fb66915396 /jeschli
parentd3c84b0d2981f46574046e19d8e3d618065b92a0 (diff)
buildbot-stockholm: build using the test attribute
While at it, fix */krops.nix to actually use the target attribute.
Diffstat (limited to 'jeschli')
-rw-r--r--jeschli/krops.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/jeschli/krops.nix b/jeschli/krops.nix
index e55f207d..34f3aaa5 100644
--- a/jeschli/krops.nix
+++ b/jeschli/krops.nix
@@ -27,14 +27,9 @@ in {
target = "root@${name}/var/src";
};
- # usage: $(nix-build --no-out-link --argstr name HOSTNAME -A test)
- test = pkgs.krops.writeTest "${name}-test" {
+ # usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)
+ test = { target }: pkgs.krops.writeTest "${name}-test" {
+ inherit target;
source = source { test = true; };
- target = "${lib.getEnv "HOME"}/tmp/${name}-stockholm-test";
- };
-
- ci = pkgs.krops.writeTest "${name}-test" {
- source = source { test = true; };
- target = "${lib.getEnv "HOME"}/stockholm-build";
};
}