crandalf (version 0.0.1)

travis_fold: Fold Travis logs into sections

Description

Travis supports folding build logs to make navigation easier in the log viewer. The function travis_fold() implemented this feature in R. Additionally, the build time for each section will be written after the section tag. You can use either travis_start() and travis_end() separately (put R code in between), or a single travis_fold() call when the R code is short enough.

Usage

travis_fold(job, code, ...)
travis_start(job, msg = paste("Running", job))
travis_end(job)

Arguments

job
a character string as the section tag (job name)
code
an R expression to run within a section
...
passed to travis_start()
msg
a character vector of messages to write for the log section

References

https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/script/templates/header.sh