8000 Fold Travis CI output by component · symfony/symfony@2d59800 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d59800

Browse files
maidmaidnicolas-grekas
authored andcommitted
Fold Travis CI output by component
1 parent 301bfa4 commit 2d59800

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,19 @@ install:
8282
- if [[ ! $skip ]]; then composer update --no-suggest; fi
8383
- if [[ ! $skip ]]; then ./phpunit install; fi
8484
- if [[ ! $skip && ! $PHP = hhvm* ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi
85+
- . .github/travis_fold.sh
86+
- tfold () { FOLD=$(echo $1 | tr / .); echo "travis_fold:start:$FOLD"; echo -e "\\e[1;34m$1\\e[0m"; sh -c "$2" 2>&1 && echo "travis_fold:end:$FOLD" }
87+
- export -f tfold
88+
- |
89+
run_tests () {
90+
if [[ $skip ]]; then echo -e "\\n\\e[1;34mIntermediate PHP version $PHP is skipped for pull requests.\\e[0m"; fi
91+
if [[ ! $deps && ! $PHP = hhvm* ]]; then echo "$COMPONENTS" | parallel --gnu 'tfold {} "$PHPUNIT --exclude-group tty,benchmark,intl-data {}"'; fi
92+
if [[ ! $deps && ! $PHP = hhvm* ]]; then tfold tty-group "$PHPUNIT --group tty"; fi
93+
if [[ ! $deps && $PHP = hhvm* ]]; then $PHPUNIT --exclude-group benchmark,intl-data; fi
94+
if [[ ! $deps && $PHP = ${MIN_PHP%.*} ]]; then echo -e "1\\n0" | xargs -I{} sh -c 'tfold src/Symfony/Component/Process.sigchild{} "ENHANCE_SIGCHLD={} php-$MIN_PHP/sapi/cli/php .phpunit/phpunit-4.8/phpunit --colors=always src/Symfony/Component/Process/"'; fi
95+
if [[ $deps = high ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; tfold {} "composer update --no-progress --no-suggest --ansi && $PHPUNIT --exclude-group tty,benchmark,intl-data$LEGACY"'; fi
96+
if [[ $deps = low ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; tfold {} "composer update --no-progress --no-suggest --ansi --prefer-lowest --prefer-stable && $PHPUNIT --exclude-group tty,benchmark,intl-data"'; fi
97+
}
8598
8699
script:
87-
- REPORT=' && echo -e "\\e[32mOK\\e[0m {}\\n\\n" || (echo -e "\\e[41mKO\\e[0m {}\\n\\n" && $(exit 1))'
88-
- if [[ $skip ]]; then echo -e "\\n\\e[1;34mIntermediate PHP version $PHP is skipped for pull requests.\\e[0m"; fi
89-
- if [[ ! $deps && ! $PHP = hhvm* ]]; then echo "$COMPONENTS" | parallel --gnu '$PHPUNIT --exclude-group tty,benchmark,intl-data {}'"$REPORT"; fi
90-
- if [[ ! $deps && ! $PHP = hhvm* ]]; then echo -e "\\nRunning tests requiring tty"; $PHPUNIT --group tty; fi
91-
- if [[ ! $deps && $PHP = hhvm* ]]; then $PHPUNIT --exclude-group benchmark,intl-data; fi
92-
- if [[ ! $deps && $PHP = ${MIN_PHP%.*} ]]; then echo -e "1\\n0" | xargs -I{} sh -c 'echo "\\nPHP --enable-sigchild enhanced={}" && ENHANCE_SIGCHLD={} php-$MIN_PHP/sapi/cli/php .phpunit/phpunit-4.8/phpunit --colors=always src/Symfony/Component/Process/'; fi
93-
- if [[ $deps = high ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer update --no-progress --no-suggest --ansi; $PHPUNIT --exclude-group tty,benchmark,intl-data'$LEGACY"$REPORT"; fi
94-
- if [[ $deps = low ]]; then echo "$COMPONENTS" | parallel --gnu -j10% 'cd {}; composer update --no-progress --no-suggest --ansi --prefer-lowest --prefer-stable; $PHPUNIT --exclude-group tty,benchmark,intl-data'"$REPORT"; fi
100+
- run_tests

src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function testCollectConnections()
2424
$c = $this->createCollector(array());
2525
$c->collect(new Request(), new Response());
2626
$this->assertEquals(array('default' => 'doctrine.dbal.default_connection'), $c->getConnections());
27+
$this->assertTrue(false);
2728
}
2829

2930
public function testCollectManagers()

0 commit comments

Comments
 (0)
0