Dav*_*dge 0 php phpunit vagrant ansible
我试图通过ansible安装phpunit,以便在vagrant vm上运行它,但是我在构建过程中一直收到错误:
通道"pear.phpunit.de"未初始化,使用"pear channel-discover pear.phpunit.de"在"pear.phpunit.de/PHPUnit"中初始化pear config-set auto_discover 1未知通道"pear.phpunit.de" "无效的包名/包文件"pear.phpunit.de/PHPUnit"安装失败
ansbile配置看起来像:
- name: Install phpunit
command: pear channel-discover pear.phpunit.de
command: pear channel-discover pear.symfony-project.com
command: pear channel-discover components.ez.no
command: pear channel-discover pear.symfony.com
command: pear update-channels
command: pear upgrade-all
command: pear install pear.symfony.com/Yaml
command: pear install --alldeps pear.phpunit.de/PHPUnit
command: pear install --force --alldeps pear.phpunit.de/PHPUnit
Run Code Online (Sandbox Code Playgroud)
有没有人设法成功通过ansible安装phpunit?
由于不再支持PHPUnit的pear安装程序.如果你想用ansible安装PHPUnit,你可以这样做:
get_url: url=https://phar.phpunit.de/phpunit.phar dest=/usr/local/bin/phpunit mode=555
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1564 次 |
最近记录: |