I'm building an automated script that installs the latest version of Symfony 2.2, adds our company's CMS bundles to composer.json
, creates a couple of new bundles and so on.
The automation works otherwise fine, but occasionally some of the vendor downloads from GitHub fail randomly due to timeouts. When I run php composer.phar install
again, the download usually succeeds and the install process fails again a few dependencies later. After about 10 executions, everything is finally installed.
This causes big problems for the installer, as it currently quits and cleans up everything it installed in case the assertions fail. Is there a way I can either keep running the composer install command until I'm sure everything is installed, or ask composer to retry the downloads if they fail?