Since this Friday, Travis now has a PHP 8.0 image available.
This commit:
Adds a new build against PHP 8.0, with PHPUNIT flag set to 1 (= on), which is not allowed to fail.
No longer run the tests against nightly (PHP 8.1), only lint the code on nightly.
In the install section: makes sure that the composer install with --ignore-platform-reqs is used for PHP 8.x as otherwise the install would fail due to PHPUnit 5.x (as per the lock file) not being allowed to be installed on PHP 8.
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Composer: update test tools
Update WP Test Utils to version 0.2.1 with dependencies,
which means that BrainMonkey and PHPUnit Polyfills have now also been updated.Refs:
Travis: run the tests against PHP 8.0
Since this Friday, Travis now has a PHP 8.0 image available.
This commit:
PHPUNIT
flag set to1
(= on), which is not allowed to fail.nightly
(PHP 8.1), only lint the code onnightly
.install
section: makes sure that thecomposer install
with--ignore-platform-reqs
is used for PHP 8.x as otherwise the install would fail due to PHPUnit 5.x (as per the lock file) not being allowed to be installed on PHP 8.Test instructions
This PR can be tested by following these steps: