DeclarativeJobsets: test basic functionality

This commit is contained in:
Graham Christensen
2022-01-15 13:42:09 -05:00
parent eef633c1cc
commit b2cdde0901
4 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ jobspath, ... }:
with import ../config.nix;
{
jobsets = mkDerivation {
name = "jobsets";
builder = ./generator.sh;
jobsets = builtins.toJSON {
my-jobset = {
enabled = 1;
hidden = false;
description = "my-declarative-jobset";
nixexprinput = "src";
nixexprpath = "one-job.nix";
checkinterval = 300;
schedulingshares = 100;
enableemail = false;
emailoverride = "";
keepnr = 3;
inputs = {
src = {
type = "path";
value = jobspath;
emailresponsible = false;
};
};
};
};
};
}

View File

@ -0,0 +1,3 @@
#! /bin/sh
echo "$jobsets" > $out