Description Usage Arguments Details Value See Also Examples
Retrieve and refresh the public key used for encryption.
1 2 3 | get_encryption_key(repo, ...)
set_encryption_key(repo, ...)
|
repo |
A character string specifying a repo slug (i.e., cloudyr/travisci), a numeric Travis-CI repository ID, or an object of class “travis_repo”. If a slug is used, it will be implicitly converted to a repository ID in some cases where only the latter is accepted. |
... |
Additional arguments passed to |
These functions retrieve and refresh the public key used for encrypting secure environment variables for the Travis-CI build environment. This is probably more easily handled using the travis command-line tools, but it is also an implemented feature of the API and the functionality may be expanded in the future. See hrefhttp://docs.travis-ci.com/user/encryption-keys/the API documentation for full details. get_encryption_key
retrieves the current, repository-specific public key. set_encryption_key
resets the key and returns its value.
A list.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# authenticate based on Sys.setenv("GITHUB_TOKEN" = "sometoken")
auth_travis()
# get current public key
get_encryption_key("cloudyr/travisci")
# reset public key and retrieve the new value
set_encryption_key("cloudyr/travisci")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.