1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Xdebug 3 compatibility

This commit is contained in:
Nick Liu 2020-11-26 15:24:18 +01:00
parent 1f75bb1180
commit 4021f403c6
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -74,9 +74,12 @@ jobs:
- name: PECL install xdebug
run: |
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.0.0", ">=") ? 1 : 0);') = '1' ]
if [ $(php -r 'printf(version_compare(PHP_VERSION, "7.2.0", ">=") ? 1 : 0);') = '1' ]
then
pecl install xdebug
elif [ $(php -r 'printf(version_compare(PHP_VERSION, "7.0.0", ">=") ? 1 : 0);') = '1' ]
then
pecl install xdebug-2.9.8
else
pecl install xdebug-2.5.5
fi
@ -88,7 +91,7 @@ jobs:
run: curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress
working-directory: ./e107_tests/
- name: Download Git submodule dependencies
@ -112,7 +115,7 @@ jobs:
run: |
if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ]
then
php ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml #--coverage-html
php -d xdebug.mode=coverage ./vendor/bin/codecept run unit --steps --debug --coverage --coverage-xml #--coverage-html
else
echo "Warning: xdebug not available; skipping coverage..."
php ./vendor/bin/codecept run unit --steps --debug