Exemple #1
0
 /**
  * Register tasks for this application
  *
  * @param \TYPO3\Surf\Domain\Model\Workflow $workflow
  * @param \TYPO3\Surf\Domain\Model\Deployment $deployment
  * @return void
  */
 public function registerTasks(Workflow $workflow, Deployment $deployment)
 {
     parent::registerTasks($workflow, $deployment);
     $this->checkIfMandatoryOptionsExist();
     $this->buildConfiguration();
     $this->defineTasks($workflow, $deployment);
     if ($this->getOption('enableTests') !== false) {
         $workflow->addTask(array('TYPO3\\Surf\\Task\\TYPO3\\Flow\\UnitTestTask', 'TYPO3\\Surf\\Task\\TYPO3\\Flow\\FunctionalTestTask'), 'test', $this);
     }
     $workflow->addTask(array('TYPO3\\Surf\\DefinedTask\\CreateZipDistributionTask', 'TYPO3\\Surf\\DefinedTask\\CreateTarGzDistributionTask', 'TYPO3\\Surf\\DefinedTask\\CreateTarBz2DistributionTask'), 'cleanup', $this);
     if ($this->hasOption('enableSourceforgeUpload') && $this->getOption('enableSourceforgeUpload') === true) {
         $workflow->addTask('TYPO3\\Surf\\Task\\SourceforgeUploadTask', 'cleanup', $this);
     }
     if ($this->hasOption('releaseHost')) {
         $workflow->addTask('TYPO3\\Surf\\Task\\Release\\PrepareReleaseTask', 'initialize', $this);
         $workflow->addTask('TYPO3\\Surf\\Task\\Release\\ReleaseTask', 'cleanup', $this);
     }
     if ($this->hasOption('releaseHost') && $this->hasOption('enableSourceforgeUpload') && $this->getOption('enableSourceforgeUpload') === true) {
         $workflow->addTask('TYPO3\\Surf\\Task\\Release\\AddDownloadTask', 'cleanup', $this);
     }
     if ($this->hasOption('createTags') && $this->getOption('createTags') === true) {
         $workflow->addTask('TYPO3\\Surf\\Task\\Git\\TagTask', 'cleanup', $this);
         if ($this->hasOption('TYPO3\\Surf\\DefinedTask\\Git\\PushTagsTask') && $this->getOption('TYPO3\\Surf\\DefinedTask\\Git\\PushTagsTask') === true) {
             $workflow->afterTask('TYPO3\\Surf\\Task\\Git\\TagTask', 'TYPO3\\Surf\\DefinedTask\\Git\\PushTagsTask', $this);
         }
     }
     $workflow->removeTask('TYPO3\\Surf\\Task\\TYPO3\\Flow\\MigrateTask');
 }
 /**
  * Register tasks for this application
  *
  * @param \TYPO3\Surf\Domain\Model\Workflow $workflow
  * @param \TYPO3\Surf\Domain\Model\Deployment $deployment
  * @return void
  */
 public function registerTasks(Workflow $workflow, Deployment $deployment)
 {
     $workflow->addTask(array('famelo.surf.sharedhosting:patchflow', 'famelo.surf.sharedhosting:patchsettings', 'famelo.surf.sharedhosting:setdefaultcontext'), 'update');
     parent::registerTasks($workflow, $deployment);
     $workflow->beforeTask('typo3.surf:transfer:rsync', array('famelo.surf.sharedhosting:beardpatch'), $this);
     $workflow->afterStage('update', array('famelo.surf.sharedhosting:symlinkconfiguration'), $this);
     $workflow->removeTask('typo3.surf:typo3:flow:symlinkconfiguration');
 }
Exemple #3
0
 /**
  * Register tasks for this application
  *
  * @param \TYPO3\Surf\Domain\Model\Workflow $workflow
  * @param \TYPO3\Surf\Domain\Model\Deployment $deployment
  * @return void
  */
 public function registerTasks(Workflow $workflow, Deployment $deployment)
 {
     parent::registerTasks($workflow, $deployment);
     $workflow->addTask('TYPO3\\Surf\\Task\\TYPO3\\Neos\\ImportSiteTask', 'migrate', $this);
 }
 /**
  * @return string
  */
 protected function getRemoteRootPath()
 {
     $this->requireApplication(__METHOD__);
     return $this->application->getDeploymentPath() . '/releases/current/';
 }