示例#1
0
        public void Setup()
        {
            if (Log == null)
                Log = new ConsoleLog();

            if (Options.OutputDir == null)
                Options.OutputDir = Directory.GetCurrentDirectory();

            Queue = new BuildQueue();
            Queue.BuildAdded += BuildAdded;
            Queue.BuildRemoved += BuildRemoved;
        }
示例#2
0
        public BuildServer(Options options)
        {
            Options = options;
            Projects = new List<Project>();
            BuildAgents = new List<RemoteBuildAgent>();
            BuildQueue = new BuildQueue();
            GithubPoller = new GithubPoller(Projects, Options.Username,
                Options.Token);
            GithubPoller.RepositoryChanged += OnRepositoryChange;

            Database = new Database(options.Database);
            Database.LoadProjects(Projects);
            Database.LoadBuilds();
        }