Description Usage Arguments Details Value See Also Examples
Get or set repository settings
1 2 3 | get_repo_settings(repo, ...)
set_repo_settings(repo, settings = list(), ...)
|
repo |
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”. |
... |
Additional arguments passed to |
settings |
A list containing named settings and their values. See results of |
get_repo_settings
retrieves Travis-CI settings for a given repository. set_repo_settings
modifies those settings based upon a list of input values. Use get_env_vars
and add_env_vars
to modify environment variables used in a build. Most of these features can also be modified using a .travis.yml file in the GitHub repository itself (see Building an R Project in the Travis CI documentation for details).
A list of settings.
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 settings
g <- get_repo_settings(repo = "cloudyr/travisci")
# pass modified settings list
g[[1]] <- TRUE
set_repo_settings(repo = "cloudyr/travisci", g)
# specify new settings individually
set_repo_settings(repo = "cloudyr/travisci", list("builds_only_with_travis_yml" = FALSE))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.