Skip to content

Commit

Permalink
MAGETWO-69808: Fix composer validation #9905
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Jun 13, 2017
2 parents 33c7218 + 980bd1f commit 5261393
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ private function validateComposerJsonFile($path)
/** @var \Magento\Framework\Composer\MagentoComposerApplicationFactory $appFactory */
$appFactory = self::$objectManager->get(\Magento\Framework\Composer\MagentoComposerApplicationFactory::class);
$app = $appFactory->create();
$app->runComposerCommand(['command' => 'validate'], $path);

try {
$app->runComposerCommand(['command' => 'validate'], $path);
} catch (\RuntimeException $exception) {
$this->fail($exception->getMessage());
}
}

/**
Expand Down

0 comments on commit 5261393

Please sign in to comment.