-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fold Travis CI output by component #22252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
wouldn't your change also fold in case of failure ? |
Yes, but it's |
0b51977
to
c8a20a0
Compare
@stof could you help me please? I want this result:
but |
maybe redirect stderr to stdout? |
e79dafd
to
4e48d53
Compare
Where is Travis CI? 😕 |
I guess you need to push force again (after a commit --amend) |
4e48d53
to
6fbdcd9
Compare
c703b16
to
16ec3fa
Compare
looks like it's almost working :) |
Ok @nicolas-grekas, I will see to do that :) |
4505897
to
1b96ef6
Compare
1b96ef6
to
904f68a
Compare
Looks nice! allowing someting like this to work (note that I removed folding for HHVM because I think we don't need it): - if [[ ! $deps && ! $PHP = hhvm* ]]; then echo "$COMPONENTS" | parallel --gnu 'fold {} $PHPUNIT --exclude-group tty,benchmark,intl-data {}'; fi
- if [[ ! $deps && ! $PHP = hhvm* ]]; then fold PHPUnit.tty $PHPUNIT --group tty; fi
- if [[ ! $deps && $PHP = hhvm* ]]; then $PHPUNIT --exclude-group benchmark,intl-data; fi
- if [[ ! $deps && $PHP = ${MIN_PHP%.*} ]]; then echo -e "1\\n0" | xargs -I{} fold PHPUnit.sigchild sh -c 'ENHANCE_SIGCHLD={} php-$MIN_PHP/sapi/cli/php .phpunit/phpunit-4.8/phpunit --colors=always src/Symfony/Component/Process/'; fi
- if [[ $deps = high ]]; then echo "$COMPONENTS" | parallel --gnu -j10% fold {} sh -c 'cd {}; fold Composer composer update --no-progress --no-suggest --ansi && fold PHPUnit $PHPUNIT --exclude-group tty,benchmark,intl-data$LEGACY'; fi
- if [[ $deps = low ]]; then echo "$COMPONENTS" | parallel --gnu -j10% fold {} sh -c 'cd {}; fold Composer composer update --no-progress --no-suggest --ansi --prefer-lowest --prefer-stable && fold PHPUnit $PHPUNIT --exclude-group tty,benchmark,intl-data'; fi |
.travis.yml
Outdated
@@ -84,11 +84,12 @@ install: | |||
- if [[ ! $skip && ! $PHP = hhvm* ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi | |||
|
|||
script: | |||
- REPORT=' && echo -e "\\e[32mOK\\e[0m {}\\n\\n" || (echo -e "\\e[41mKO\\e[0m {}\\n\\n" && $(exit 1))' | |||
- FOLD_START='echo "travis_fold:start:$FOLD"; echo -e "\\e[32m$FOLD\\e[0m"' | |||
- FOLD_END='echo "travis_fold:end:$FOLD"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
such config lines should be moved in the previous "install" section
Ok for fold shell script. But in your code example, you have forget to end folding no? Instead: - - if [[ ! $deps && ! $PHP = hhvm* ]]; then fold PHPUnit.tty $PHPUNIT --group tty; fi
+ - if [[ ! $deps && ! $PHP = hhvm* ]]; then fold PHPUnit.tty $PHPUNIT --group tty fold_end; fi |
6836672
to
8237bc9
Compare
There is no need for the end script if start/end magic string are handled inside the script in fact. |
8237bc9
to
ca78690
Compare
ca78690
to
759b505
Compare
33a2e69
to
452c112
Compare
…ekas) This PR was merged into the 2.7 branch. Discussion ---------- Fold Travis CI output by component | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Trying some tweaks on top of #22252 Commits ------- cf87678 Make .travis.yml more readable 7a9b086 Fold Travis CI output by component
Travis CI has a feature that allows fold in tests output. For better tests readability, I propose to fold all components output that have successful result.