From 721276fbd1f88031baa9afff3b1c112856a8f2e5 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 22 Mar 2019 13:25:51 -0400 Subject: [PATCH] Load the evaluation strategy in evaluation --- ofborg/src/tasks/evaluate.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ofborg/src/tasks/evaluate.rs b/ofborg/src/tasks/evaluate.rs index 3c2ac9e..db1a914 100644 --- a/ofborg/src/tasks/evaluate.rs +++ b/ofborg/src/tasks/evaluate.rs @@ -129,6 +129,12 @@ impl worker::SimpleWorker for EvaluationWorker let issue: Issue; let auto_schedule_build_archs: Vec; + let mut evaluation_strategy: Box = if job.is_nixpkgs() { + Box::new(eval::NixpkgsStrategy::new()) + } else { + Box::new(eval::GenericStrategy::new()) + }; + match issue_ref.get() { Ok(iss) => { if iss.state == "closed" {