예제 #1
0
        private static int Main(string[] args)
        {
            var logger = new ConsoleLogger(includeTimestamp: false);

            Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription);
            logger.IncludeTimestamp = true;

            var settings = TeamBuildSettings.GetSettingsFromEnvironment(logger);

            Debug.Assert(settings != null, "Settings should not be null");

            var config = GetAnalysisConfig(settings, logger);

            bool succeeded;

            if (config == null)
            {
                succeeded = false;
            }
            else
            {
                var postProcessor = new MSBuildPostProcessor(
                    new CoverageReportProcessor(),
                    new SonarScannerWrapper(),
                    new SummaryReportBuilder(),
                    logger,
                    new TargetsUninstaller());

                succeeded = postProcessor.Execute(args, config, settings);
            }

            return(succeeded ? SuccessCode : ErrorCode);
        }
예제 #2
0
        private static int Main(string[] args)
        {
            ConsoleLogger logger = new ConsoleLogger(includeTimestamp: true);

            TeamBuildSettings settings = TeamBuildSettings.GetSettingsFromEnvironment(logger);

            Debug.Assert(settings != null, "Settings should not be null");

            AnalysisConfig config = GetAnalysisConfig(settings, logger);

            bool succeeded;

            if (config == null)
            {
                succeeded = false;
            }
            else
            {
                MSBuildPostProcessor postProcessor = new MSBuildPostProcessor(new CoverageReportProcessor(), new SonarRunnerWrapper(), new SummaryReportBuilder());

                succeeded = postProcessor.Execute(args, config, settings, logger);
            }

            return(succeeded ? SuccessCode : ErrorCode);
        }
예제 #3
0
        private static int Main(string[] args)
        {
            ConsoleLogger logger = new ConsoleLogger();
            Utilities.LogAssemblyVersion(logger, typeof(Program).Assembly, Resources.AssemblyDescription);
            logger.IncludeTimestamp = true;

            TeamBuildSettings settings = TeamBuildSettings.GetSettingsFromEnvironment(logger);
            Debug.Assert(settings != null, "Settings should not be null");

            AnalysisConfig config = GetAnalysisConfig(settings, logger);

            bool succeeded;
            if (config == null)
            {
                succeeded = false;
            }
            else
            {
                MSBuildPostProcessor postProcessor = new MSBuildPostProcessor(new CoverageReportProcessor(), new SonarRunnerWrapper(), new SummaryReportBuilder());

                succeeded = postProcessor.Execute(args, config, settings, logger);
            }

            return succeeded ? SuccessCode : ErrorCode;
        }
예제 #4
0
        private static int Main(string[] args)
        {
            ConsoleLogger logger = new ConsoleLogger(includeTimestamp: true);

            TeamBuildSettings settings = TeamBuildSettings.GetSettingsFromEnvironment(logger);
            Debug.Assert(settings != null, "Settings should not be null");

            AnalysisConfig config = GetAnalysisConfig(settings, logger);

            bool succeeded;
            if (config == null)
            {
                succeeded = false;
            }
            else
            {
                MSBuildPostProcessor postProcessor = new MSBuildPostProcessor(new CoverageReportProcessor(), new SonarRunnerWrapper(), new SummaryReportBuilder());

                succeeded = postProcessor.Execute(args, config, settings, logger);
            }

            return succeeded ? SuccessCode : ErrorCode;
        }