Description Usage Arguments Details Value See Also Examples
Retrieve Travis Builds
1 | get_builds(repo, build, ...)
|
repo |
Optionally, a numeric repository ID (such as returned by this function), a character string specifying a GitHub repository “slug” (e.g., ghusername/ghreponame), or an object of class “travis_repo”. |
build |
Optionally, a numeric value specifying a build number, or an object of class “travis_build”. |
... |
Additional arguments passed to |
This can retrieve a list of recent builds (across all repos), recent builds for a specific repo (if repo
is specified), or information about a specific build if build
is (or both repo
and build
are) specified.
A list.
cancel_build
, get_repo
, get_branch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# authenticate based on Sys.setenv("GITHUB_TOKEN" = "sometoken")
auth_travis()
# get all recent builds
g <- get_builds()
# get builds for a specific repo
get_builds(repo = "cloudyr/travisci")
get_builds(repo = g[[1]]$repository_id)
# get a specific build
get_builds(build = g[[1]]$id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.