Attempt gitlab ci code coverage with phpdbg

This commit is contained in:
Timothy Warren 2017-02-28 09:24:42 -05:00
parent 004e643fde
commit 0fe00056dd
2 changed files with 17 additions and 29 deletions

View File

@ -14,9 +14,9 @@ test:7:
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar update - php composer.phar update
- php composer.phar install - php composer.phar install
image: php:7 image: php:7-alpine
script: script:
- vendor/bin/phpunit --coverage-text --colors=never - phpdbg -qrr -- vendor/bin/phpunit --coverage-text --colors=never
test:7.1: test:7.1:
before_script: before_script:
@ -24,6 +24,6 @@ test:7.1:
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar update - php composer.phar update
- php composer.phar install - php composer.phar install
image: php:7.1 image: php:7.1-alpine
script: script:
- vendor/bin/phpunit --coverage-text --colors=never - phpdbg -qrr -- vendor/bin/phpunit --coverage-text --colors=never

View File

@ -3,36 +3,24 @@
# We need to install dependencies only for Docker # We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0 [[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
# Where am I?
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -xe set -xe
# Install git (the php image doesn't have it) which is required by composer # Install git (the php image doesn't have it) which is required by composer
apt-get update -yqq apk upgrade --update && apk add --no-cache \
apt-get install \ g++ \
make \
autoconf \
curl \
git \ git \
unzip \ php7-phpdbg
libfreetype6 \
libjpeg62-turbo \
libmcrypt4 \
libpng12-0 \
libfreetype6-dev \
libjpeg-dev \
libmcrypt-dev \
libpng12-dev \
libxslt1-dev \
libxslt1.1 \
zlib1g-dev \
-yqq
# Install phpunit, the tool that we will use for testing # Install phpunit, the tool that we will use for testing
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit chmod +x /usr/local/bin/phpunit
# Install gd # Install extensions
docker-php-ext-configure gd --enable-gd-native-ttf --with-jpeg-dir=/usr/lib/x86_64-linux-gnu --with-png-dir=/usr/lib/x86_64-linux-gnu --with-freetype-dir=/usr/lib/x86_64-linux-gnu # Install xdebug for coverage report
docker-php-ext-install gd # docker-php-source extract
docker-php-ext-install mcrypt # pecl install xdebug
docker-php-ext-install xsl # docker-php-ext-enable xdebug
docker-php-ext-install zip # docker-php-source delete