Exemple #1
0
        private static ManualCompetitionConfig Create(
            [NotNull] Assembly targetAssembly)
        {
            var createOptions = AppConfigHelpers.GetAppConfigOptions(
                targetAssembly,
                typeof(AssemblyWideConfig).Assembly);

#if CI_Build
            createOptions.PreviousRunLogUri = null;
#else
            if (createOptions.PreviousRunLogUri.IsNullOrEmpty())
            {
                var assemblyName = targetAssembly.GetName().Name;
                createOptions.PreviousRunLogUri =
                    $@"https://ci.appveyor.com/api/projects/andrewvk/codejam/artifacts/{assemblyName}{AppConfigHelpers.ImportantOnlyLogSuffix}?all=true";
            }
#endif

            createOptions.Loggers |= AppConfigLoggers.ImportantOnly;

            if (createOptions.TargetPlatform == Platform.Host)
            {
                createOptions.TargetPlatform = Platform.X64;
            }

            return(AppConfigHelpers.CreateAppCompetitionConfig(targetAssembly, createOptions));
        }
Exemple #2
0
        private static ManualCompetitionConfig Create(
            [NotNull] Assembly targetAssembly)
        {
            var createOptions = AppConfigHelpers.GetAppConfigOptions(targetAssembly);

            return(AppConfigHelpers.CreateAppCompetitionConfig(targetAssembly, createOptions));
        }