在codeship.io上運行CI構建返回到無法解釋的錯誤。調試文本的最後一行是:Codeship CI返回無法解釋的作曲家錯誤
[..]
Clearing the cache for the dev environment with debug true
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets handling the post-install-cmd event terminated with an exception
[ErrorException]
Undefined property: Composer\Script\CommandEvent::$getIO
codeship文檔沒有多說關於部署/構建Symfony應用程序。似乎不可能創建bootstrap.php.cache
文件。
編輯:
我使用的Symfony 2.4.3-DEV
,作曲家是無法完成的post-install-cmd
腳本,所以它看起來像作曲家在Codeship沒有I/O接口。在Codeship的安裝腳本中添加composer self-update
會導致相同的錯誤。
的codeship配置爲:
# Set php version through phpenv. 5.3, 5.4 and 5.5 available
phpenv local 5.4
# Install dependencies through Composer
composer selfupdate
composer install --prefer-source --no-interaction --optimize-autoloader
什麼是你的symfony版本和發佈config_dev.yml –
你或許應該郵寄codeship傢伙。他們通常響應速度非常快,他們可能會提供解決方案或至少提示 –