get_builds: Get Builds

Description Usage Arguments Details Value See Also Examples

Description

Retrieve Travis Builds

Usage

1

Arguments

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 travisHTTP.

Details

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.

Value

A list.

See Also

cancel_build, restart_build

cancel_build, get_repo, get_branch

Examples

 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)

cloudyr/travisci documentation built on May 13, 2019, 8:22 p.m.