/** * @see sfTask */ protected function execute($arguments = array(), $options = array()) { $buildAllReload = new sfDoctrineBuildAllReloadTask($this->dispatcher, $this->formatter); $buildAllReload->setCommandApplication($this->commandApplication); $buildAllReload->setConfiguration($this->configuration); $ret = $buildAllReload->run(array(), array( 'dir' => $options['dir'], 'append' => $options['append'], 'skip-forms' => $options['skip-forms'], 'no-confirmation' => $options['no-confirmation'], 'migrate' => $options['migrate'], )); if ($ret) { return $ret; } $this->logSection('doctrine', 'running test suite'); $testAll = new sfTestAllTask($this->dispatcher, $this->formatter); $testAll->setCommandApplication($this->commandApplication); $testAll->setConfiguration($this->configuration); $testAll->run(); }
/** * @see sfTask */ protected function execute($arguments = array(), $options = array()) { $buildAllReload = new sfDoctrineBuildAllReloadTask($this->dispatcher, $this->formatter); $buildAllReload->setCommandApplication($this->commandApplication); $buildAllReloadOptions = array(); if (!empty($options['application'])) { $buildAllReloadOptions[] = '--application=' . $options['application']; } $buildAllReloadOptions[] = '--env=' . $options['env']; if (!empty($options['dir'])) { $buildAllReloadOptions[] = '--dir=' . implode(' --dir=', $options['dir']); } if (isset($options['append']) && $options['append']) { $buildAllReloadOptions[] = '--append'; } if (isset($options['no-confirmation']) && $options['no-confirmation']) { $buildAllReloadOptions[] = '--no-confirmation'; } $ret = $buildAllReload->run(array(), $buildAllReloadOptions); if ($ret) { return $ret; } $this->logSection('doctrine', 'running test suite'); $testAll = new sfTestAllTask($this->dispatcher, $this->formatter); $testAll->setCommandApplication($this->commandApplication); $testAll->run(); }
/** * @see sfTask */ protected function execute($arguments = array(), $options = array()) { $buildAllReload = new sfDoctrineBuildAllReloadTask($this->dispatcher, $this->formatter); $buildAllReload->setCommandApplication($this->commandApplication); $buildAllReloadOptions = array(); $buildAllReloadOptions[] = '--env=' . $options['env']; if (!empty($options['dir'])) { $buildAllReloadOptions[] = '--dir=' . implode(' --dir=', $options['dir']); } if (isset($options['append']) && $options['append']) { $buildAllReloadOptions[] = '--append'; } if (isset($options['force']) && $options['force']) { $buildAllReloadOptions[] = '--force'; } $buildAllReload->run(array('application' => $arguments['application']), $buildAllReloadOptions); $testAll = new sfTestAllTask($this->dispatcher, $this->formatter); $testAll->setCommandApplication($this->commandApplication); $testAll->run(); }