Skip to content

Commit

Permalink
Fixing comment and incorrect deploymentapi call
Browse files Browse the repository at this point in the history
  • Loading branch information
ericduran committed Mar 25, 2015
1 parent cd4f8fe commit de6455f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/flo/Command/PullRequest/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$process = new Process("cd {$pr_directories}{$path}/docroot && drush sql-create --yes && drush psi --yes --account-pass=pa55word");
}

// The installation process has a 7 minute timeout anything greater gets cutoff.
$process->setTimeout(60 * 60 * 7);
// The installation process has a 20 minute timeout anything greater gets cutoff.
if ($output->getVerbosity() == OutputInterface::VERBOSITY_VERY_VERBOSE) {
$output->writeln("<info>Process: {$process->getCommandLine()}");
}
$process->setTimeout(60 * 20);
$process->run();
if (!$process->isSuccessful()) {
throw new \RuntimeException($process->getErrorOutput());
Expand All @@ -193,7 +196,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
)
);

$github->api('deployment')->update(
$github->api('deployment')->updateStatus(
$this->getConfigParameter('organization'),
$this->getConfigParameter('repository'),
$deployment['id'],
Expand Down

0 comments on commit de6455f

Please sign in to comment.