Example output for a normal build on Travis CI using Gradle:
https://travis-ci.org/2m/gradle-travis-test/builds/8579228
Gradle seems to think that the console has the same capabilities as a normal ANSI console, while in reality it only supports some of those features. Specifically, it seems to support colors, but not updating/replacing text (it's append-only).
How can I tell Gradle to use "plain" console output?
Gradle automatically detects the terminal type based on the $TERM environment variable (and a few other layers in between). Setting TERM=dumb
causes Gradle to use plain console output.
In your .travis.yml file, you should now have something like the following (assuming the Gradle wrapper is used):
install:
- TERM=dumb ./gradlew assemble
script:
- TERM=dumb ./gradlew check
For sample output, see this build:
https://travis-ci.org/embarkmobile/zxing-android-minimal/builds/9639517
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With