Skip to content
Snippets Groups Projects
Commit 4fe9785b authored by Erick Hitter's avatar Erick Hitter
Browse files

WP's unit tests don't yet work with the version of PHPUnit that works with PHP 8

parent d152e2e9
No related branches found
No related tags found
1 merge request!12WP's unit tests don't yet work with the version of PHPUnit that works with PHP 8
...@@ -5,7 +5,7 @@ before_script: ...@@ -5,7 +5,7 @@ before_script:
# PHPUnit # PHPUnit
- | - |
if [[ $(php -v) =~ "PHP 8." ]]; then if [[ $(php -v) =~ "PHP 8." ]]; then
composer global require "phpunit/phpunit=7.*" composer global require "phpunit/phpunit=9.*"
elif [[ $(php -v) =~ "PHP 7." ]]; then elif [[ $(php -v) =~ "PHP 7." ]]; then
composer global require "phpunit/phpunit=6.1.*" composer global require "phpunit/phpunit=6.1.*"
elif [[ $(php -v) =~ "PHP 5.6" ]]; then elif [[ $(php -v) =~ "PHP 5.6" ]]; then
......
...@@ -71,6 +71,7 @@ PHPunit:PHP8.0:MySQL: ...@@ -71,6 +71,7 @@ PHPunit:PHP8.0:MySQL:
script: script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l - find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpunit - phpunit
allow_failure: true
PHPCS: PHPCS:
stage: test stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment