Ask Travis to wait longer for PHPUnit to finish

This commit is contained in:
Adrien Crivelli 2016-09-01 11:19:42 +09:00
parent fb2edfdacf
commit 150ad19580
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@ script:
## PHP-CS-Fixer
- ./vendor/bin/php-cs-fixer fix --diff --verbose
## PHPUnit
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
- travis_wait 30 ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
after_script:
- if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml ; fi

View File

@ -11,6 +11,10 @@ class SampleTest extends \PHPUnit_Framework_TestCase
*/
public function testSample($sample)
{
// Suppress output to console
$this->setOutputCallback(function () {
});
require $sample;
}