예제 #1
0
 public static void RemoveModuleFromBuiltInfo(string moduleName)
 {
     lock (LockObject)
     {
         var storage = BuiltInfoStorage.Deserialize();
         storage.RemoveBuildInfo(moduleName);
         storage.Save();
     }
 }
예제 #2
0
        public void GetModulesOrder(string moduleName, string configuration, out List <Dep> topSortedVertices, out List <Dep> updatedModules, out Dictionary <string, string> currentCommitHashes)
        {
            log.Debug("Building configurations graph");
            ConsoleWriter.WriteProgress("Building configurations graph");
            var configsGraph = BuildConfigsGraph(moduleName, configuration);

            configsGraph      = EraseExtraChildren(configsGraph);
            topSortedVertices = GetTopologicallySortedGraph(configsGraph, moduleName, configuration);

            log.Debug("Getting current commit hashes");
            ConsoleWriter.WriteProgress("Getting current commit hashes");
            currentCommitHashes = GetCurrentCommitHashes(configsGraph);
            updatedModules      = BuiltInfoStorage.Deserialize().GetUpdatedModules(topSortedVertices, currentCommitHashes);
            ConsoleWriter.ResetProgress();
        }
예제 #3
0
        public ModulesOrder GetModulesOrder(string moduleName, string configuration)
        {
            var modulesOrder = new ModulesOrder();

            log.LogDebug("Building configurations graph");
            ConsoleWriter.WriteProgress("Building configurations graph");
            modulesOrder.ConfigsGraph = BuildConfigsGraph(moduleName, configuration);
            modulesOrder.ConfigsGraph = EraseExtraChildren(modulesOrder.ConfigsGraph);
            modulesOrder.BuildOrder   = GetTopologicallySortedGraph(modulesOrder.ConfigsGraph, moduleName, configuration);

            log.LogDebug("Getting current commit hashes");
            ConsoleWriter.WriteProgress("Getting current commit hashes");
            modulesOrder.CurrentCommitHashes = GetCurrentCommitHashes(modulesOrder.ConfigsGraph);
            modulesOrder.UpdatedModules      = BuiltInfoStorage.Deserialize().GetUpdatedModules(modulesOrder.BuildOrder, modulesOrder.CurrentCommitHashes);
            ConsoleWriter.ResetProgress();
            return(modulesOrder);
        }