/** * Register tasks for this application * * @param \TYPO3\Deploy\Domain\Model\Workflow $workflow * @param \TYPO3\Deploy\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); $workflow->forApplication($this, 'initialize', array('typo3.deploy:flow3:createdirectories')); if ($this->getOption('enableTests') !== FALSE) { $workflow->forApplication($this, 'test', array('typo3.deploy:flow3:unittest'))->forApplication($this, 'test', array('typo3.deploy:flow3:functionaltest')); } $workflow->forApplication($this, 'cleanup', array('createZipDistribution', 'createTarGzDistribution', 'createTarBz2Distribution')); if ($this->hasOption('enableSourceforgeUpload') && $this->getOption('enableSourceforgeUpload') === TRUE) { $workflow->forApplication($this, 'cleanup', array('typo3.deploy:sourceforgeupload')); } if ($this->hasOption('createTags') && $this->getOption('createTags') === TRUE) { $workflow->forApplication($this, 'cleanup', array('typo3.deploy:git:tag')); } }
/** * Register tasks for this application * * @param \TYPO3\Deploy\Domain\Model\Workflow $workflow * @param \TYPO3\Deploy\Domain\Model\Deployment $deployment * @return void */ public function registerTasks(Workflow $workflow, Deployment $deployment) { parent::registerTasks($workflow, $deployment); $workflow->forApplication($this, 'initialize', array('typo3.deploy:flow3:createdirectories'))->afterTask('typo3.deploy:gitcheckout', array('typo3.deploy:flow3:symlinkdata', 'typo3.deploy:flow3:symlinkconfiguration'), $this)->afterTask('typo3.deploy:gitcheckout', array('typo3.deploy:flow3:setfilepermissions'), $this)->forApplication($this, 'migrate', array('typo3.deploy:flow3:migrate')); }