Skip to content

Commit

Permalink
Test components using their lowest possible deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored and fabpot committed Dec 15, 2014
1 parent 503c760 commit 25fef27
Show file tree
Hide file tree
Showing 20 changed files with 73 additions and 51 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ matrix:
- php: hhvm-nightly
include:
- php: 5.5
env: components=yes
env: components=high
- php: 5.3.3
env: components=low

services: mongodb

Expand All @@ -23,6 +25,7 @@ env:

before_install:
- travis_retry sudo apt-get install parallel
- composer self-update
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then echo "" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ] && [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
Expand All @@ -37,4 +40,5 @@ install:
script:
- sh -c 'if [ "$components" = "no" ]; then sh -c "ls -d src/Symfony/*/* | parallel --gnu --keep-order '\''echo \"Running {} tests\"; phpunit --exclude-group tty,benchmark,intl-data {};'\''"; fi;'
- sh -c 'if [ "$components" = "no" ]; then sh -c "echo "\""Running tests requiring tty"\""; phpunit --group tty"; fi;'
- sh -c 'if [ "$components" = "yes" ]; then sh -c "find src/Symfony -mindepth 3 -type f -name '\''phpunit.xml.dist'\'' | sed '\''s#\(.*\)/.*#\1#'\'' | parallel --gnu --keep-order '\''echo \"Running {} tests\"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install; phpunit --exclude-group tty,benchmark,intl-data;'\''"; fi;'
- sh -c 'if [ "$components" = "high" ]; then sh -c "find src/Symfony -mindepth 3 -type f -name '\''phpunit.xml.dist'\'' | sed '\''s#\(.*\)/.*#\1#'\'' | parallel --gnu --keep-order '\''echo \"Running {} tests\"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install; phpunit --exclude-group tty,benchmark,intl-data;'\''"; fi;'
- sh -c 'if [ "$components" = "low" ]; then sh -c "find src/Symfony -mindepth 3 -type f -name '\''phpunit.xml.dist'\'' | sed '\''s#\(.*\)/.*#\1#'\'' | parallel --gnu --keep-order '\''echo \"Running {} tests\"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev --prefer-lowest --prefer-stable update; phpunit --exclude-group tty,benchmark,intl-data;'\''"; fi;'
10 changes: 6 additions & 4 deletions src/Symfony/Bridge/Doctrine/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@
],
"require": {
"php": ">=5.3.3",
"doctrine/common": "~2.2"
"doctrine/common": "~2.3"
},
"require-dev": {
"symfony/stopwatch": "~2.2",
"symfony/dependency-injection": "~2.0",
"symfony/form": "~2.2",
"symfony/dependency-injection": "~2.0,>=2.0.5",
"symfony/form": "~2.3,>=2.3.8",
"symfony/http-kernel": "~2.2",
"symfony/property-access": "~2.3",
"symfony/security": "~2.2",
"symfony/validator": "~2.3.0",
"symfony/validator": "~2.3.0,>=2.3.20",
"symfony/translation": "~2.0,>=2.0.5",
"doctrine/data-fixtures": "1.0.*",
"doctrine/dbal": "~2.2",
"doctrine/orm": "~2.2,>=2.2.3"
Expand Down
9 changes: 5 additions & 4 deletions src/Symfony/Bridge/Propel1/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
],
"require": {
"php": ">=5.3.3",
"symfony/http-foundation": "~2.0",
"symfony/http-kernel": "~2.0",
"symfony/form": "~2.2",
"propel/propel1": "~1.6"
"symfony/http-foundation": "~2.0,>=2.0.5",
"symfony/http-kernel": "~2.0,>=2.0.5",
"symfony/form": "~2.3,>=2.3.8",
"symfony/property-access": "~2.3",
"propel/propel1": "~1.6,>=1.6.5"
},
"require-dev": {
"symfony/stopwatch": "~2.2"
Expand Down
11 changes: 6 additions & 5 deletions src/Symfony/Bridge/Twig/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
],
"require": {
"php": ">=5.3.3",
"twig/twig": "~1.12"
"twig/twig": "~1.12,>=1.12.3"
},
"require-dev": {
"symfony/finder": "~2.3",
"symfony/form": "~2.2",
"symfony/http-kernel": "~2.2",
"symfony/form": "~2.3,>=2.3.5",
"symfony/http-kernel": "~2.3",
"symfony/locale": "~2.0,>=2.0.5",
"symfony/routing": "~2.2",
"symfony/templating": "~2.1",
"symfony/translation": "~2.2",
"symfony/yaml": "~2.0",
"symfony/security": "~2.0"
"symfony/yaml": "~2.0,>=2.0.5",
"symfony/security": "~2.0,>=2.0.5"
},
"suggest": {
"symfony/finder": "",
Expand Down
22 changes: 13 additions & 9 deletions src/Symfony/Bundle/FrameworkBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,31 @@
],
"require": {
"php": ">=5.3.3",
"symfony/dependency-injection": "~2.2",
"symfony/config": "~2.2",
"symfony/dependency-injection" : "~2.3",
"symfony/config" : "~2.3,>=2.3.12",
"symfony/event-dispatcher": "~2.1",
"symfony/http-kernel": "~2.3",
"symfony/http-foundation": "~2.3,>=2.3.19",
"symfony/http-kernel": "~2.3,>=2.3.22",
"symfony/filesystem": "~2.3",
"symfony/routing": "~2.2",
"symfony/stopwatch": "~2.3",
"symfony/templating": "~2.1",
"symfony/translation": "~2.3",
"symfony/translation": "~2.3,>=2.3.19",
"doctrine/common": "~2.2"
},
"require-dev": {
"symfony/browser-kit": "~2.3",
"symfony/console": "~2.0",
"symfony/finder": "~2.0",
"symfony/console": "~2.3",
"symfony/css-selector": "~2.0,>=2.0.5",
"symfony/dom-crawler": "~2.0,>=2.0.5",
"symfony/finder": "~2.0,>=2.0.5",
"symfony/locale": "~2.0,>=2.0.5",
"symfony/security": "~2.3",
"symfony/form": "~2.3.0",
"symfony/form": "~2.3.0,>=2.3.5",
"symfony/class-loader": "~2.1",
"symfony/process": "~2.0",
"symfony/process": "~2.0,>=2.0.5",
"symfony/validator": "~2.1",
"symfony/yaml": "~2.0"
"symfony/yaml": "~2.0,>=2.0.5"
},
"suggest": {
"symfony/console": "",
Expand Down
12 changes: 9 additions & 3 deletions src/Symfony/Bundle/SecurityBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@
},
"require-dev": {
"symfony/browser-kit": "~2.3",
"symfony/css-selector": "~2.0,>=2.0.5",
"symfony/dependency-injection": "~2.3",
"symfony/dom-crawler": "~2.0,>=2.0.5",
"symfony/form": "~2.3",
"symfony/framework-bundle": "~2.2,<2.6.0",
"symfony/http-foundation": "~2.3",
"symfony/twig-bundle": "~2.2",
"symfony/form": "~2.1",
"symfony/process": "~2.0",
"symfony/twig-bridge": "~2.2,>=2.2.6",
"symfony/form": "~2.3",
"symfony/process": "~2.0,>=2.0.5",
"symfony/validator": "~2.2",
"symfony/yaml": "~2.0"
"symfony/yaml": "~2.0,>=2.0.5",
"twig/twig": "~1.12"
},
"autoload": {
"psr-0": { "Symfony\\Bundle\\SecurityBundle\\": "" }
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/TwigBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"require-dev": {
"symfony/stopwatch": "~2.2",
"symfony/dependency-injection": "~2.0",
"symfony/dependency-injection": "~2.2",
"symfony/config": "~2.2",
"symfony/framework-bundle": "~2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/WebProfilerBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"require-dev": {
"symfony/config": "~2.2",
"symfony/console": "~2.3",
"symfony/dependency-injection": "~2.0",
"symfony/dependency-injection": "~2.2",
"symfony/stopwatch": "~2.2"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Component/BrowserKit/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
],
"require": {
"php": ">=5.3.3",
"symfony/dom-crawler": "~2.0"
"symfony/dom-crawler": "~2.0,>=2.0.5"
},
"require-dev": {
"symfony/process": "~2.0",
"symfony/css-selector": "~2.0"
"symfony/process": "~2.0,>=2.0.5",
"symfony/css-selector": "~2.0,>=2.0.5"
},
"suggest": {
"symfony/process": ""
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/ClassLoader/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"symfony/finder": "~2.0"
"symfony/finder": "~2.0,>=2.0.5"
},
"autoload": {
"psr-0": { "Symfony\\Component\\ClassLoader\\": "" }
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Debug/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"symfony/http-kernel": "~2.1",
"symfony/http-kernel": "~2.2",
"symfony/http-foundation": "~2.1"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/DependencyInjection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"symfony/yaml": "~2.0",
"symfony/yaml": "~2.1",
"symfony/config": "~2.2"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/DomCrawler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"symfony/css-selector": "~2.0"
"symfony/css-selector": "~2.0,>=2.0.5"
},
"suggest": {
"symfony/css-selector": ""
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/EventDispatcher/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"symfony/dependency-injection": "~2.0"
"symfony/dependency-injection": "~2.0,>=2.0.5"
},
"suggest": {
"symfony/dependency-injection": "",
Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Component/Form/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"require-dev": {
"doctrine/collections": "~1.0",
"symfony/validator": "~2.3.0",
"symfony/validator": "~2.3.0,>=2.3.20",
"symfony/translation": "~2.0,>=2.0.5",
"symfony/http-foundation": "~2.2"
},
"suggest": {
Expand Down
16 changes: 9 additions & 7 deletions src/Symfony/Component/HttpKernel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@
"require": {
"php": ">=5.3.3",
"symfony/event-dispatcher": "~2.1",
"symfony/http-foundation": "~2.2",
"symfony/http-foundation": "~2.3,>=2.3.4",
"symfony/debug": "~2.3",
"psr/log": "~1.0"
},
"require-dev": {
"symfony/browser-kit": "~2.2",
"symfony/browser-kit": "~2.3",
"symfony/class-loader": "~2.1",
"symfony/config": "~2.0",
"symfony/config": "~2.0,>=2.0.5",
"symfony/console": "~2.2",
"symfony/dependency-injection": "~2.0",
"symfony/finder": "~2.0",
"symfony/process": "~2.0",
"symfony/css-selector": "~2.0,>=2.0.5",
"symfony/dependency-injection": "~2.2",
"symfony/dom-crawler": "~2.0,>=2.0.5",
"symfony/finder": "~2.0,>=2.0.5",
"symfony/process": "~2.0,>=2.0.5",
"symfony/routing": "~2.2",
"symfony/stopwatch": "~2.2",
"symfony/stopwatch": "~2.3",
"symfony/templating": "~2.2"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"require-dev": {
"symfony/config": "~2.2",
"symfony/http-foundation": "~2.3",
"symfony/yaml": "~2.0",
"symfony/yaml": "~2.0,>=2.0.5",
"doctrine/common": "~2.2",
"psr/log": "~1.0"
},
Expand Down
5 changes: 3 additions & 2 deletions src/Symfony/Component/Security/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
],
"require": {
"php": ">=5.3.3",
"symfony/event-dispatcher": "~2.1",
"symfony/event-dispatcher": "~2.2",
"symfony/http-foundation": "~2.1",
"symfony/http-kernel": "~2.1"
},
"require-dev": {
"symfony/form": "~2.0",
"symfony/form": "~2.0,>=2.0.5",
"symfony/locale": "~2.0,>=2.0.5",
"symfony/routing": "~2.2",
"symfony/validator": "~2.2",
"doctrine/common": "~2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Translation/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": ">=5.3.3"
},
"require-dev": {
"symfony/config": "~2.0",
"symfony/config": "~2.3,>=2.3.12",
"symfony/intl": "~2.3",
"symfony/yaml": "~2.2"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Component/Validator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
],
"require": {
"php": ">=5.3.3",
"symfony/translation": "~2.0"
"symfony/translation": "~2.0,>=2.0.5"
},
"require-dev": {
"symfony/http-foundation": "~2.1",
"symfony/intl": "~2.3",
"symfony/yaml": "~2.0",
"symfony/yaml": "~2.0,>=2.0.5",
"symfony/config": "~2.2"
},
"suggest": {
Expand Down

0 comments on commit 25fef27

Please sign in to comment.