summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/ci.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-30 19:05:55 +0200
committerlassulus <lassulus@lassul.us>2017-07-30 19:40:42 +0200
commit35784d80d241163c02eb4dc56f2aa45acd3510c1 (patch)
tree0577851e467311c49ec9038a362e203c6d9936ef /krebs/3modules/ci.nix
parentc97358f18ab4e2852c62c220e972203b7cd94b5a (diff)
krebs buildbot: add treeStableTimer as option
Diffstat (limited to 'krebs/3modules/ci.nix')
-rw-r--r--krebs/3modules/ci.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/3modules/ci.nix b/krebs/3modules/ci.nix
index 1f8dc71e0..f64c28d25 100644
--- a/krebs/3modules/ci.nix
+++ b/krebs/3modules/ci.nix
@@ -8,6 +8,11 @@ in
{
options.krebs.ci = {
enable = mkEnableOption "krebs continous integration";
+ treeStableTimer = mkOption {
+ type = types.int;
+ default = 10;
+ description = "how long to wait until we test changes (in minutes)";
+ };
users = mkOption {
type = with types; attrsOf (submodule {
options = {
@@ -69,7 +74,7 @@ in
sched.append(
schedulers.SingleBranchScheduler(
change_filter=util.ChangeFilter(branch_re=".*"),
- treeStableTimer=10,
+ treeStableTimer=${toString cfg.treeStableTimer}*60,
name="build-all-branches",
builderNames=[
"build-hosts"