Ralph Pina
Ralph Pina

Reputation: 761

Log messages to console when running tests in Travis CI

Is there a way to log a message to the Travis console? I have tried System.out.println() without much luck. The closes to any docs I can find is https://groups.google.com/forum/#!topic/travis-ci/VYpwYaiKfSA

Upvotes: 1

Views: 1234

Answers (1)

roidrage
roidrage

Reputation: 2341

The recommended way is to output something to either stdout or stderr. If these messages aren't redirected somewhere else (log file or /dev/null), they'll be dumped into the build's log output, and should be visible, as we collect both streams (stderr and stdout).

Upvotes: 2

Related Questions