minor #14241 [travis] Test latest PRs on 3.0 with 2.7 (nicolas-grekas)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[travis] Test latest PRs on 3.0 with 2.7

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

We do not need deps=high tests on 3.0.
But checking out 2.7 and testing it with the current PR on 3.0 is required.

Commits
-------

e1ac75c [travis] Test latest PRs on 3.0 with 2.7
This commit is contained in:
Fabien Potencier 2015-04-07 11:43:05 +02:00
commit 1de61fad0d
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ matrix:
- php: 5.5.9
env: deps=low
- php: 5.6
env: deps=high
env: deps=2.7
- php: nightly
- php: hhvm-nightly
allow_failures:
@ -41,9 +41,11 @@ install:
- if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
- components=$(find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n')
- if [ "$deps" != "no" ]; then sh .travis.sh $TRAVIS_BRANCH $components; fi;
- if [ "$deps" = "2.7" ]; then git fetch origin 2.7; git checkout -m origin/2.7; export COMPOSER_ROOT_VERSION=2.7.x-dev fi;
script:
- if [ "$deps" = "no" ]; then echo "$components" | parallel --gnu --keep-order 'echo -e "\\nRunning {} tests"; phpunit --exclude-group tty,benchmark,intl-data {} || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
- if [ "$deps" = "no" ]; then echo -e "\\nRunning tests requiring tty"; phpunit --group tty || (echo -e "\\e[41mKO\\e[0m tty group" && $(exit 1)); fi;
- if [ "$deps" = "high" ]; then echo "$components" | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; composer --prefer-source update; phpunit --exclude-group tty,benchmark,intl-data || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
- if [ "$deps" = "low" ]; then echo "$components" | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; composer --prefer-source --prefer-lowest --prefer-stable update; phpunit --exclude-group tty,benchmark,intl-data || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
- if [ "$deps" = "2.7" ]; then echo "$components" | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; composer --prefer-source update; phpunit --exclude-group tty,benchmark,intl-data,legacy || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;