Skip to content

Commit 453f0d2

Browse files
committed
Merge branch '2.2' into 2.3
* 2.2: Run all tests in parallel. Fixed an entity class name. Conflicts: .travis.yml src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php
2 parents 53b2048 + 9016f7d commit 453f0d2

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ php:
77
- 5.5
88

99
before_script:
10+
- sudo apt-get install parallel
1011
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
1112
- sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
1213
- COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install
14+
- php src/Symfony/Component/Locale/Resources/data/build-data.php
15+
- export USE_INTL_ICU_DATA_VERSION=1
16+
17+
script:
18+
- ls -d src/Symfony/*/* | parallel --gnu --keep-order 'echo "Running {} tests"; phpunit --exclude-group tty,benchmark {};' || exit 1
19+
- echo "Running tests requiring tty"; phpunit --group tty

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Form\Type;
1313

14-
use Symfony\Component\Form\Test\FormPerformanceTestCase;
15-
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIdentEntity;
14+
use Symfony\Component\Form\Tests\FormPerformanceTestCase;
15+
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
1616
use Doctrine\ORM\Tools\SchemaTool;
1717
use Symfony\Bridge\Doctrine\Tests\DoctrineOrmTestCase;
1818
use Symfony\Component\Form\Extension\Core\CoreExtension;
@@ -23,7 +23,7 @@
2323
*/
2424
class EntityTypePerformanceTest extends FormPerformanceTestCase
2525
{
26-
const ENTITY_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIdentEntity';
26+
const ENTITY_CLASS = 'Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity';
2727

2828
/**
2929
* @var \Doctrine\ORM\EntityManager

src/Symfony/Component/Console/Tests/Helper/DialogHelperTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ public function testAskWithAutocomplete()
9494
$this->assertEquals('FooBundle', $dialog->ask($this->getOutputStream(), 'Please select a bundle', 'FrameworkBundle', $bundles));
9595
}
9696

97+
/**
98+
* @group tty
99+
*/
97100
public function testAskHiddenResponse()
98101
{
99102
if (defined('PHP_WINDOWS_VERSION_BUILD')) {

0 commit comments

Comments
 (0)