File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,12 @@ cache:
16
16
before_install : composer validate --strict
17
17
18
18
install :
19
- - composer install
20
- - " [ $TRAVIS_PHP_VERSION != '8.0' ] || composer update phpunit/phpunit --ignore-platform-reqs --with-dependencies"
19
+ - " [ $TRAVIS_PHP_VERSION == '8.0' ] || composer install"
20
+ # Temporary hack to allow installing PHPUnit 7 with PHP 8 until WP 5.9.
21
+ # as WP PHPUnit does not allow PHPUnit higher than 7 yet.
22
+ # See https://github.com/WordPress/wordpress-develop/commit/8def694fe4c5df95f8e20e40389faf9cb92b6dca
23
+ - " [ $TRAVIS_PHP_VERSION != '8.0' ] || composer install --ignore-platform-reqs"
24
+ - composer show
21
25
22
26
script :
23
27
- php -l src/db.php || exit 1
Original file line number Diff line number Diff line change 29
29
"phpunit/phpunit" : " ^5 || ^6 || ^7" ,
30
30
"roots/wordpress" : " ^5" ,
31
31
"wp-cli/core-command" : " ^2" ,
32
- "wp-phpunit/wp-phpunit" : " ^5"
32
+ "wp-phpunit/wp-phpunit" : " ^5" ,
33
+ "yoast/phpunit-polyfills" : " ^1.0"
33
34
},
34
35
"scripts" : {
35
36
"test" : " phpunit"
37
+ },
38
+ "config" : {
39
+ "allow-plugins" : {
40
+ "roots/wordpress-core-installer" : true ,
41
+ "composer/installers" : true
42
+ }
36
43
}
37
44
}
You can’t perform that action at this time.
0 commit comments