Skip to content
Snippets Groups Projects
Commit 54174426 authored by Thomas Flori's avatar Thomas Flori
Browse files

generate cobertura reports only in php >= 7.3

parent baee880b
No related branches found
No related tags found
1 merge request!24switch to gitlab-ci and move project
Pipeline #744 failed with stages
in 6 minutes and 15 seconds
......@@ -32,6 +32,33 @@ phpunit:
path: coverage/cobertura.xml
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
phpunit-old:
stage: test
needs: []
parallel:
matrix:
- PHP_VERSION: ['7.1', '7.2']
image: iras/php-composer:${PHP_VERSION}
cache:
key: php-dependencies-${PHP_VERSION}
paths:
- ./storage/composer
before_script:
- export COMPOSER_CACHE_DIR=$(pwd)/storage/composer
# basically we are ignoring the composer.lock in tests
- composer update --no-interaction --ansi
script:
- php -dzend_extension=xdebug.so -dxdebug.mode=coverage
vendor/bin/phpunit -c phpunit.xml --color=always
--coverage-text
--coverage-html=coverage/html | tee /tmp/phpunit.out
- sed -r 's~\x01?(\x1B\(B)?\x1B\[([0-9;]*)?[JKmsu]\x02?~~g' /tmp/phpunit.out|grep '^ Lines'
artifacts:
paths:
- coverage/html
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
# quality:
# stage: test
# needs: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment