Skip to content

Commit

Permalink
Xdebug 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltik committed Nov 26, 2020
1 parent 1f75bb1 commit 4dc67ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ 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' ]
pecl install xdebug-2.9.8
else
pecl install xdebug-2.5.5
fi
Expand All @@ -88,7 +90,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
Expand All @@ -112,7 +114,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
Expand Down

0 comments on commit 4dc67ab

Please sign in to comment.