tool for running Travis CI jobs generating more than 4MB of output
Travis worker terminates jobs which generates more then 4 MiB output to the log. Bigger builds must redirect output from terminal to not exceed log limit, but jobs not generating any output for more then 10 minutes are terminated too.
To run bigger builds on Travis CI you should redirect output to file, generate some output during build time and display selected part of logfile when task is done.
###Parameters
travis_wait_log
script (written in Bash) do above tasks
for you.
travis_wait_log [minutes] [env vars] <command> [args]...
where
minutes
is optional time in minutes betweend printing dots to output, 5 minutes defaultenv vars
are optional environment variables assigmentscommand
is program to be run with output redirected
###Examples
./travis_wait_log LANG=C make all install
./travis_wait_log 5 LANG=C make all install
calls make with displaying 1 dot per 5 minutes and printing last 500 lines of log, setting locale to C.
./travis_wait_log 1 make tests
run tests with make, displaying 1 dot per minute and printing last 500 lines of log.
###Additional parameters
You can fine-tune script settings with additional variables:
LOG
- logfile name, /tmp/travis_wait.log defaultLINES
- maximum number of lines from logfile to show, 500 defaultCOLUMNS
- number of dots displayed in one line, 70 default
Example:
LOG=/tmp/logfile1.txt LINES=100 ./travis_wait_log 3 LANG=C make all