File tree Expand file tree Collapse file tree 4 files changed +11
-31
lines changed Expand file tree Collapse file tree 4 files changed +11
-31
lines changed Original file line number Diff line number Diff line change 1+ branches :
2+ only :
3+ - master
4+
15language : php
26
37services :
@@ -27,8 +31,11 @@ before_script:
2731install :
2832 - composer validate --strict
2933 - composer require --no-update --dev roots/wordpress:${WP_VERSION} wp-phpunit/wp-phpunit:${WP_VERSION}
30- - composer install
31- - " [ $TRAVIS_PHP_VERSION != '8.0' ] || composer update phpunit/phpunit --ignore-platform-reqs --with-dependencies"
34+ - " [ $TRAVIS_PHP_VERSION == '8.0' ] || composer install"
35+ # Temporary hack to allow installing PHPUnit 7 with PHP 8 until WP 5.9.
36+ # as WP PHPUnit does not allow PHPUnit higher than 7 yet.
37+ # See https://github.com/WordPress/wordpress-develop/commit/8def694fe4c5df95f8e20e40389faf9cb92b6dca
38+ - " [ $TRAVIS_PHP_VERSION != '8.0' ] || composer install --ignore-platform-reqs"
3239 - composer show
3340
3441script :
Original file line number Diff line number Diff line change 2020 "require-dev" : {
2121 "phpunit/phpunit" : " ^5 || ^6 || ^7" ,
2222 "roots/wordpress" : " ^5.0" ,
23- "wp-phpunit/wp-phpunit" : " ^5.0"
23+ "wp-phpunit/wp-phpunit" : " ^5.0" ,
24+ "yoast/phpunit-polyfills" : " ^1.0"
2425 },
2526 "scripts" : {
2627 "test" : " phpunit"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments