Skip to content

Commit 87b690d

Browse files
committed
Merge pull request #409 from stof/patch-2
Simplified the Travis configuration
2 parents 56124e7 + 8d3fd66 commit 87b690d

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

.travis.yml

+13-17
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,24 @@ php:
77
- 5.6
88
- hhvm
99

10-
env:
11-
- SYMFONY_VERSION=2.1.*
12-
- SYMFONY_VERSION=2.2.*
13-
- SYMFONY_VERSION=2.3.*
14-
- SYMFONY_VERSION=2.4.*
15-
- SYMFONY_VERSION=dev-master
16-
1710
matrix:
11+
include:
12+
- php: 5.5
13+
env: SYMFONY_VERSION='2.1.*'
14+
- php: 5.5
15+
env: SYMFONY_VERSION='2.2.*'
16+
- php: 5.5
17+
env: SYMFONY_VERSION='2.3.*'
18+
- php: 5.5
19+
env: SYMFONY_VERSION='2.4.*'
20+
- php: 5.5
21+
env: SYMFONY_VERSION='dev-master'
1822
allow_failures:
1923
- env: SYMFONY_VERSION=dev-master
2024

2125
before_script:
2226
- composer self-update
23-
- composer require symfony/twig-bundle:${SYMFONY_VERSION} --no-update
24-
- composer require symfony/twig-bridge:${SYMFONY_VERSION} --no-update
25-
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
26-
- composer require symfony/validator:${SYMFONY_VERSION} --dev --no-update
27-
- composer require symfony/console:${SYMFONY_VERSION} --no-update
28-
- composer require symfony/css-selector:${SYMFONY_VERSION} --dev --no-update
29-
- composer require symfony/browser-kit:${SYMFONY_VERSION} --dev --no-update
30-
- composer require symfony/yaml:${SYMFONY_VERSION} --dev --no-update
31-
- composer require symfony/form:${SYMFONY_VERSION} --dev --no-update
32-
- composer update
27+
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi;'
28+
- composer install
3329

3430
script: phpunit --coverage-text

Tests/Parser/ValidationParserTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ValidationParserTest extends WebTestCase
1313
public function setUp()
1414
{
1515
$container = $this->getContainer();
16-
$factory = $container->get('validator.mapping.class_metadata_factory');
16+
$factory = $container->get('validator')->getMetadataFactory();
1717

1818
if (version_compare(Kernel::VERSION, '2.2.0', '<')) {
1919
$this->parser = new ValidationParserLegacy($factory);

0 commit comments

Comments
 (0)