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
|
## PHP-CS-Fixer
|
||||||
- ./vendor/bin/php-cs-fixer fix --diff --verbose
|
- ./vendor/bin/php-cs-fixer fix --diff --verbose
|
||||||
## PHPUnit
|
## PHPUnit
|
||||||
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
|
- travis_wait 30 ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
|
||||||
|
|
||||||
after_script:
|
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
|
- 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)
|
public function testSample($sample)
|
||||||
{
|
{
|
||||||
|
// Suppress output to console
|
||||||
|
$this->setOutputCallback(function () {
|
||||||
|
});
|
||||||
|
|
||||||
require $sample;
|
require $sample;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue