示例#1
0
 protected function fire()
 {
     // Get arguments
     $version = $this->getInputVersion();
     $recipe = $this->getInputRecipe();
     $directory = $this->getInputDirectory();
     $repository = $this->getInputRepository();
     // Make the directory
     $createProject = new CreateProject($this, $version, $recipe, $directory, $repository);
     $createProject->run($this->input, $this->output);
     $project = $this->getProject();
     // Build and confirm release plan
     $buildPlan = new PlanRelease($this, $project, $version);
     $buildPlan->run($this->input, $this->output);
     $releasePlan = $buildPlan->getReleasePlan();
     // Branch all modules properly
     $branchAlias = new RewriteReleaseBranches($this, $project, $releasePlan);
     $branchAlias->run($this->input, $this->output);
     // Update all translations
     $translate = new UpdateTranslations($this, $project, $releasePlan);
     $translate->run($this->input, $this->output);
     // Run tests
     $test = new RunTests($this, $project);
     $test->run($this->input, $this->output);
     // Generate changelog
     $changelogs = new CreateChangelog($this, $project, $releasePlan);
     $changelogs->run($this->input, $this->output);
     // Output completion
     $this->output->writeln("<info>Success!</info> Release has been updated.");
     $command = $this->getPublishCommand($version, $project);
     $this->output->writeln("Please check the changes made by this command, and run <info>{$command}</info>");
 }
示例#2
0
文件: Plan.php 项目: silverstripe/cow
 protected function fire()
 {
     // Get arguments
     $version = $this->getInputVersion();
     $project = $this->getProject();
     // Build and confirm release plan
     $buildPlan = new PlanRelease($this, $project, $version);
     $buildPlan->run($this->input, $this->output);
 }
示例#3
0
 protected function fire()
 {
     // Get arguments
     $version = $this->getInputVersion();
     $project = $this->getProject();
     // Build and confirm release plan
     $buildPlan = new PlanRelease($this, $project, $version);
     $buildPlan->run($this->input, $this->output);
     $releasePlan = $buildPlan->getReleasePlan();
     // Branch all modules properly
     $branchAlias = new RewriteReleaseBranches($this, $project, $releasePlan);
     $branchAlias->run($this->input, $this->output);
 }
示例#4
0
 protected function fire()
 {
     // Get arguments
     $version = $this->getInputVersion();
     $project = $this->getProject();
     // Build and confirm release plan
     $buildPlan = new PlanRelease($this, $project, $version);
     $buildPlan->run($this->input, $this->output);
     $releasePlan = $buildPlan->getReleasePlan();
     // Update all translations
     $translate = new UpdateTranslations($this, $project, $releasePlan);
     $translate->run($this->input, $this->output);
 }
示例#5
0
 protected function fire()
 {
     // Get arguments
     $version = $this->getInputVersion();
     $project = $this->getProject();
     // Build and confirm release plan
     $buildPlan = new PlanRelease($this, $project, $version);
     $buildPlan->run($this->input, $this->output);
     $releasePlan = $buildPlan->getReleasePlan();
     // Generate changelog
     $changelogs = new CreateChangelog($this, $project, $releasePlan);
     $changelogs->run($this->input, $this->output);
 }