How can I get clean Gradle output on Travis CI?

Ralf

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?

Ralf

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

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How can I run a custom version of dpl on Travis CI?

분류에서Dev

When using CI, how can I keep my environments clean?

분류에서Dev

Python: How can I read csv and clean my data in a loop

분류에서Dev

How can I create a clean shell environment for temporary use?

분류에서Dev

How can I send inputs to a URL (someone else's server) and get the output back for use in my PHP?

분류에서Dev

How can I get a multiple page pdf output from php file?

분류에서Dev

How can I automate none-PATH plink (Putty Link) on windows? and get its output?

분류에서Dev

how can i modify main method to get input and output from the comandline?

분류에서Dev

how can i run 3 while loops simultaneously in unix and update the output of each loop to database as soon we get the output

분류에서Dev

how can i merge same data in array in ci?

분류에서Dev

How can I get a RejectedExecutionException

분류에서Dev

How can I get a solution for this?

분류에서Dev

Gradle 및 Cobertura로 travis-ci를 구축하는 방법

분류에서Dev

Gradle 작업에서 Travis CI 빌드 실패

분류에서Dev

How can I get $_GET values to a variable

분류에서Dev

Travis CI가 gradle 래퍼로 gradle 1.11의 압축을 풀지 못함

분류에서Dev

Python string clean up: How can I remove the excess of newlines of a string in python?

분류에서Dev

Python string clean up: How can I remove the excess of newlines of a string in python?

분류에서Dev

How can I concatenate a single column of output into a list?

분류에서Dev

How can I redirect all output to /dev/null?

분류에서Dev

How can I output an entire git repo to a single file?

분류에서Dev

How can I print the output of pv each on a new line as it changes?

분류에서Dev

How can I print output whilst detached from controlling terminal?

분류에서Dev

How can I remove the extra spaces between my output?

분류에서Dev

How can I color specific parts of the rsync output?

분류에서Dev

How can I convert to uppercase stderr output but not stdout?

분류에서Dev

How can I automatically target the output of a download script

분류에서Dev

Travis CI APK 경로

분류에서Dev

Gradle, Robolectric 및 Travis CI로 Android 앱을 테스트하려고 할 때 NoClassDefFoundError

Related 관련 기사

  1. 1

    How can I run a custom version of dpl on Travis CI?

  2. 2

    When using CI, how can I keep my environments clean?

  3. 3

    Python: How can I read csv and clean my data in a loop

  4. 4

    How can I create a clean shell environment for temporary use?

  5. 5

    How can I send inputs to a URL (someone else's server) and get the output back for use in my PHP?

  6. 6

    How can I get a multiple page pdf output from php file?

  7. 7

    How can I automate none-PATH plink (Putty Link) on windows? and get its output?

  8. 8

    how can i modify main method to get input and output from the comandline?

  9. 9

    how can i run 3 while loops simultaneously in unix and update the output of each loop to database as soon we get the output

  10. 10

    how can i merge same data in array in ci?

  11. 11

    How can I get a RejectedExecutionException

  12. 12

    How can I get a solution for this?

  13. 13

    Gradle 및 Cobertura로 travis-ci를 구축하는 방법

  14. 14

    Gradle 작업에서 Travis CI 빌드 실패

  15. 15

    How can I get $_GET values to a variable

  16. 16

    Travis CI가 gradle 래퍼로 gradle 1.11의 압축을 풀지 못함

  17. 17

    Python string clean up: How can I remove the excess of newlines of a string in python?

  18. 18

    Python string clean up: How can I remove the excess of newlines of a string in python?

  19. 19

    How can I concatenate a single column of output into a list?

  20. 20

    How can I redirect all output to /dev/null?

  21. 21

    How can I output an entire git repo to a single file?

  22. 22

    How can I print the output of pv each on a new line as it changes?

  23. 23

    How can I print output whilst detached from controlling terminal?

  24. 24

    How can I remove the extra spaces between my output?

  25. 25

    How can I color specific parts of the rsync output?

  26. 26

    How can I convert to uppercase stderr output but not stdout?

  27. 27

    How can I automatically target the output of a download script

  28. 28

    Travis CI APK 경로

  29. 29

    Gradle, Robolectric 및 Travis CI로 Android 앱을 테스트하려고 할 때 NoClassDefFoundError

뜨겁다태그

보관