Ejemplo n.º 1
0
 /// <summary>
 /// defines a new Job that targets specified Framework
 /// </summary>
 /// <param name="targetFrameworkMoniker">Target Framework to test.</param>
 /// <param name="baseline">set to true if you want given Job to be a baseline for multiple runtimes comparison. False by default</param>
 public TargetFrameworkJobAttribute(TargetFrameworkMoniker targetFrameworkMoniker, bool baseline = false)
     : base(Job.Default
            .With(targetFrameworkMoniker.GetToolchain())
            .With(targetFrameworkMoniker.GetRuntime())
            .WithBaseline(baseline))
 {
 }
Ejemplo n.º 2
0
        private static Job GetJob(TargetFrameworkMoniker targetFrameworkMoniker, Jit?jit, Platform?platform)
        {
            var baseJob = GetBaseJob(targetFrameworkMoniker.GetRuntime());
            var id      = baseJob.Id;

            if (jit.HasValue)
            {
                baseJob = baseJob.With(jit.Value);
                id     += "-" + jit.Value;
            }

            if (platform.HasValue)
            {
                baseJob = baseJob.With(platform.Value);
                id     += "-" + platform.Value;
            }

            return(baseJob.With(targetFrameworkMoniker.GetToolchain()).WithId(id));
        }
Ejemplo n.º 3
0
        private static Job GetJob(TargetFrameworkMoniker targetFrameworkMoniker, Jit?jit, Platform?platform)
        {
            var runtime = targetFrameworkMoniker.GetRuntime();
            var baseJob = Job.Dry.With(runtime).WithId($"Dry-{runtime.Name}");
            var id      = baseJob.Id;

            if (jit.HasValue)
            {
                baseJob = baseJob.With(jit.Value);
                id     += "-" + jit.Value;
            }

            if (platform.HasValue)
            {
                baseJob = baseJob.With(platform.Value);
                id     += "-" + platform.Value;
            }

            return(baseJob.WithId(id).Freeze());
        }