예제 #1
0
        private void RunNUnitWithTeamCity(string joinedTestDlls, IEnumerable <string> excludeCategories, IEnumerable <string> includeCategories)
        {
            var args = new[] {
                TeamCityFrameworkVersion,
                TeamCityPlatform,
                TeamCityNUnitVersion,
                GetTeamCityIncludeExcludeArgument("category-exclude", excludeCategories),
                GetTeamCityIncludeExcludeArgument("category-include", includeCategories),
                joinedTestDlls
            };

            var nunitLauncher = Environment.GetEnvironmentVariable("teamcity.dotnet.nunitlauncher");

            Shell.Exec(nunitLauncher, String.Join(" ", args));
        }
예제 #2
0
        public void Deploy(string package, string webProject, Dictionary <string, object> environment, string username = "", string password = "", bool verbose = false)
        {
            _verbose = verbose;

            var archive = ConfiguredMsDeployArchiveDirectory(package, webProject, environment);
            var servers = Servers(environment);

            foreach (var server in servers)
            {
                var site = environment["site"];
                _log.Info("deploying to server: {0}, site: {1}", server, site);

                var args = new ExecArgsBuilder();
                args.Add("-source:archiveDir='{0}'", archive);
                args.Add(
                    "-dest:auto,computerName='http://{0}/MSDeployAgentService',includeAcls='False',username='******',password='******',authtype=ntlm",
                    server, username, password);
                args.Add("-verb:sync");
                args.Add("-disableLink:AppPoolExtension");
                args.Add("-disableLink:ContentExtension");
                args.Add("-disableLink:CertificateExtension");
                args.Add(@"-setParam:""IIS Web Application Name""=""{0}""", site);
                _shell.Exec(@"msdeploy", args.Args);
            }
        }
예제 #3
0
        public void Build(string projSln, string config, string outputDir, string target)
        {
            var arguments = NormaliseArguments(
                "\"" + projSln + "\"",
                ConfigIfSpecified(config),
                OutputDirIfSpecified(outputDir),
                TargetIfSpecified(target)
                );

            Shell.Exec(MsBuildExe, arguments);
        }