Exemple #1
0
        public UmbracoDefaultConfig(string version, ConsoleArgs consoleArgs, Action globalSetupAction, Action globalCleanupAction)
        {
            ArtifactsPath = consoleArgs.ArtifactFolder.FullName;

            Add(JitOptimizationsValidator.DontFailOnError); // ALLOW NON-OPTIMIZED DLLS

            Add(DefaultConfig.Instance.GetLoggers().ToArray());
            Add(DefaultConfig.Instance.GetColumnProviders().ToArray());

            //csv exporter per version
            Add(CsvExporter.Default);
            //combined csv report per runId
            Add(new AppendingCsvExporter(consoleArgs.RunId));

            Set(new SummaryStyle {
                PrintUnitsInContent = false
            });

            GlobalSetupCallbacks.AddSetup(globalSetupAction);
            GlobalSetupCallbacks.AddCleanup(globalCleanupAction);

            var job = Job.MediumRun
                      .WithLaunchCount(1) //we're running in process so only 1 makes sense
                      .With(RunStrategy.Monitoring)
                      .With(InProcessToolchain.Instance)
                      .WithId(version);

            Add(new TagColumn("VersionIndex", s => consoleArgs.Index.ToString()));

            Add(job);
        }
Exemple #2
0
 public virtual void CleanupDefault()
 {
     GlobalSetupCallbacks.RunCleanupActions();
 }
Exemple #3
0
 public virtual void SetupDefault()
 {
     GlobalSetupCallbacks.RunSetupActions();
     ApplicationContext = ApplicationContext.Current;
 }