Example #1
0
        protected override void InternalExecute(Context context)
        {
            Logger.WriteCommand("Checkout core");
            var projectDirectoryPath = Path.Combine(Context.Settings.ProjectsPath, Context.ProjectDirectoryName);
            var svnManager           = new SvnManager(context.Settings.SvnUserName, context.Settings.SvnUserPassword);

            svnManager.Checkout(Context.Settings.CorePath, Context.BuildCoreRevision, projectDirectoryPath);
            Logger.WriteCommandSuccess();
        }
Example #2
0
        private List <string> GetInstallScripts()
        {
            var svnManager        = new SvnManager(Context.Settings.SvnUserName, Context.Settings.SvnUserPassword);
            var fileManager       = new FileManager();
            var tempDirectoryPath = fileManager.CreateTempFolder();

            svnManager.Checkout(Context.Settings.TSqltPath, tempDirectoryPath);
            List <string> contents = GetFilesContent(tempDirectoryPath);

            Directory.Delete(tempDirectoryPath, true);
            return(contents);
        }
        private void CheckoutProjects(IEnumerable <string> packages)
        {
            var svnManager = new SvnManager(Context.Settings.SvnUserName, Context.Settings.SvnUserPassword);

            foreach (var package in packages)
            {
                var projectDirectoryPath = Path.Combine(Context.Settings.ProjectsPath, Context.ProjectDirectoryName);
                var testDirectoryPath    = Path.Combine(projectDirectoryPath, BpmonlineConstants.ConfigurationCsUnitTestsPath, package);
                if (Directory.Exists(testDirectoryPath))
                {
                    Directory.Delete(testDirectoryPath, true);
                }
                Directory.CreateDirectory(testDirectoryPath);
                var projectUrl = Context.Settings.UnitTestsPath + "/" + package;
                svnManager.Checkout(projectUrl, testDirectoryPath);
            }
        }
Example #4
0
		private void ValidateInfrastructureConsole() {
			var infrastructureConsoleDirectoryPath = Path.Combine(Context.Settings.ProjectsPath, InfrastructureConsoleConstants.DirectoryName);
			if (Directory.Exists(infrastructureConsoleDirectoryPath)) {
				var consoleFilePath = Path.Combine(infrastructureConsoleDirectoryPath, InfrastructureConsoleConstants.ConsoleRelativePath);
				if (!File.Exists(consoleFilePath)) {
					Directory.Delete(infrastructureConsoleDirectoryPath, true);
				}
			}
			if (!Directory.Exists(infrastructureConsoleDirectoryPath)) {
				Directory.CreateDirectory(infrastructureConsoleDirectoryPath);
				Logger.WriteCommandAddition($"Directory '{infrastructureConsoleDirectoryPath}' has been created");
				var svnManager = new SvnManager(Context.Settings.SvnUserName, Context.Settings.SvnUserPassword);
				svnManager.Checkout(Context.Settings.InfrastructureConsolePath, infrastructureConsoleDirectoryPath);
			}
			

		}
Example #5
0
        private void CheckoutProjects(Dictionary <string, List <string> > repos)
        {
            var svnManager = new SvnManager(Context.Settings.SvnUserName, Context.Settings.SvnUserPassword);

            foreach (var repo in repos)
            {
                foreach (var package in repo.Value)
                {
                    var projectDirectoryPath = Path.Combine(Context.Settings.ProjectsPath, Context.ProjectDirectoryName);
                    var testDirectoryPath    = Path.Combine(projectDirectoryPath, BpmonlineConstants.ConfigurationCsUnitTestsPath, package);
                    if (Directory.Exists(testDirectoryPath))
                    {
                        Directory.Delete(testDirectoryPath, true);
                    }
                    Directory.CreateDirectory(testDirectoryPath);
                    var projectUrl = repo.Key + "/" + package;
                    svnManager.Checkout(projectUrl, testDirectoryPath);
                }
            }
        }