Skip to content

Commit 6614384

Browse files
committed
travis: Set TERM=dumb to avoid Gradle spew.
See discussion of `--console` in the Gradle CLI doc: https://docs.gradle.org/current/userguide/command_line_interface.html With the default settings in Travis, Gradle decides it has a real terminal, and spits out a bunch of "rich output" that is indeed very handy when running interactively in a real terminal. But this involves constantly overwriting a line with an updated line, and the Travis log doesn't handle that right and instead shows the various versions of the line one after another, making a giant mess. Like this: https://travis-ci.org/zulip/zulip-mobile/builds/496248778 By setting the environment variable `TERM` to `dumb`, we cause Gradle to skip the "rich" output. Together with `-q`, this makes it totally silent in the success case.
1 parent dd2e89d commit 6614384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ install:
4141
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
4242

4343
script:
44-
- tools/test --full
44+
- TERM=dumb tools/test --full
4545
- tools/verify-webview-js
4646

4747
env:

0 commit comments

Comments
 (0)