作者:广东蒗缦m莎 | 来源:互联网 | 2023-01-31 16:46
1> lordrhodos..:
问题是在Docker映像中缺少Xdebug安装。我无法使用来安装适当的版本apt-get
,因此必须pecl install xdebug
在一before_script
节中添加一个呼叫:
image: php:7.1.1
cache:
paths:
- vendor/
before_script:
# Install git, the php image doesn't have installed
- apt-get update -yqq
- apt-get install git -yqq
# Install Xdebug
- pecl install xdebug
- docker-php-ext-enable xdebug
# Install composer
- curl -sS https://getcomposer.org/installer | php
# Install all project dependencies
- php composer.phar install
# Run our tests
test:
only:
- master
script:
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never