Load the evaluation strategy in evaluation

This commit is contained in:
Graham Christensen 2019-03-22 13:25:51 -04:00
parent 4665ea2bbc
commit 721276fbd1
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -129,6 +129,12 @@ impl<E: stats::SysEvents + 'static> worker::SimpleWorker for EvaluationWorker<E>
let issue: Issue;
let auto_schedule_build_archs: Vec<systems::System>;
let mut evaluation_strategy: Box<eval::EvaluationStrategy> = 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" {