Ask Travis to wait longer for PHPUnit to finish
This commit is contained in:
parent
fb2edfdacf
commit
150ad19580
|
@ -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
|
||||
|
|
|
@ -11,6 +11,10 @@ class SampleTest extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testSample($sample)
|
||||
{
|
||||
// Suppress output to console
|
||||
$this->setOutputCallback(function () {
|
||||
});
|
||||
|
||||
require $sample;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue