mirror of
https://github.com/e107inc/e107.git
synced 2025-06-25 18:33:12 +02:00
Xdebug 3 compatibility
This commit is contained in:
9
.github/workflows/test-unit.yml
vendored
9
.github/workflows/test-unit.yml
vendored
@ -74,9 +74,12 @@ jobs:
|
|||||||
|
|
||||||
- name: PECL install xdebug
|
- name: PECL install xdebug
|
||||||
run: |
|
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
|
then
|
||||||
pecl install xdebug
|
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
|
else
|
||||||
pecl install xdebug-2.5.5
|
pecl install xdebug-2.5.5
|
||||||
fi
|
fi
|
||||||
@ -88,7 +91,7 @@ jobs:
|
|||||||
run: curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
|
run: curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
run: composer install --prefer-dist --no-progress
|
||||||
working-directory: ./e107_tests/
|
working-directory: ./e107_tests/
|
||||||
|
|
||||||
- name: Download Git submodule dependencies
|
- name: Download Git submodule dependencies
|
||||||
@ -112,7 +115,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ]
|
if [ $(php -r 'printf(extension_loaded("xdebug") ? 1 : 0);') = '1' ]
|
||||||
then
|
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
|
else
|
||||||
echo "Warning: xdebug not available; skipping coverage..."
|
echo "Warning: xdebug not available; skipping coverage..."
|
||||||
php ./vendor/bin/codecept run unit --steps --debug
|
php ./vendor/bin/codecept run unit --steps --debug
|
||||||
|
Reference in New Issue
Block a user