Skip to content

slodki/travis-wait-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

travis_wait_log

tool for running Travis CI jobs generating more than 4MB of output

Usage

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 default
  • env vars are optional environment variables assigments
  • command 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 default
  • LINES - maximum number of lines from logfile to show, 500 default
  • COLUMNS - number of dots displayed in one line, 70 default

Example:

LOG=/tmp/logfile1.txt LINES=100 ./travis_wait_log 3 LANG=C make all

About

tool for running Travis CI jobs generating more than 4MB of output

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages