mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 01:52:15 +02:00
600bcde8a8
* Travis: reorder the config No functional changes. * Travis: remove redundant env variable The "CS check" is being run in its own stage with its own script, so there is no need for this environment variable anymore. * Travis: disable Xdebug before running Composer Composer can be slower when Xdebug is enabled, so when Xdebug isn't needed, let's disable it _before_ running Composer. * Travis: remove duplicate build definitions The default stage is the `test` stage and all builds defined in the `php` key, possibly combined with an `env` key, will automatically be build in the `test` stage. No need to define them twice. The only builds to declare explicitly in `jobs` are those which need custom `env`, `dist`, `script`s etc. So: * Remove those builds which don't need anything "custom" from the `jobs` key. * Remove the one build which _does_ need something "custom" from the `php` key. * Travis: re-enable testing against PHP 5.5 PHP 5.5 is not available on the default `xenial` distro, but by explicitly telling Travis to use the `trusty` distro, we can still run the tests against PHP 5.5. * Travis: run code coverage in a separate stage Code coverage builds are "expensive" builds and if any of the tests would be failing, we are wasting time and resources by running them. So, let's move the coverage build(s) to a separate stage, which will only run once the `test` stage has passed. As this is now a separate stage, we don't need to set an environment variable to toggle code coverage on/off anymore. We can base conditions on the Travis stage name. Let's also run code coverage for PHP 5.5, so both high and low PHP code coverage output can be combined for the most realistic results, taking PHP version specific conditions into account. To make this work, we do need to tell Scrutinizer to expect reports from two separate code coverage runs. And if I'm editing that file anyway, let's remove the redundant `filter` setting for a Scrutinizer native code coverage run which is turned off anyway. * Tests: fix test failing on PHP 5.5 ... due to the use of a PHPUnit method which is not available on PHPUnit 4.x. These kind of things will be addressed better in a future PR, but this will get the build passing for now. Co-authored-by: jrfnl <jrfnl@users.noreply.github.com> |
||
---|---|---|
.. | ||
bootstrap.php | ||
DebugLogTestListener.php | ||
fakefunctions.php | ||
fakepopserver.sh | ||
fakesendmail.sh | ||
PHPMailerLangTest.php | ||
PHPMailerTest.php | ||
runfakepopserver.sh | ||
testbootstrap-dist.php |