File tree 4 files changed +11
-31
lines changed
4 files changed +11
-31
lines changed Original file line number Diff line number Diff line change
1
+ branches :
2
+ only :
3
+ - master
4
+
1
5
language : php
2
6
3
7
services :
@@ -27,8 +31,11 @@ before_script:
27
31
install :
28
32
- composer validate --strict
29
33
- 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"
32
39
- composer show
33
40
34
41
script :
Original file line number Diff line number Diff line change 20
20
"require-dev" : {
21
21
"phpunit/phpunit" : " ^5 || ^6 || ^7" ,
22
22
"roots/wordpress" : " ^5.0" ,
23
- "wp-phpunit/wp-phpunit" : " ^5.0"
23
+ "wp-phpunit/wp-phpunit" : " ^5.0" ,
24
+ "yoast/phpunit-polyfills" : " ^1.0"
24
25
},
25
26
"scripts" : {
26
27
"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