Description Usage Arguments Details References Examples
Travis-CI allows for including small pieces of encrypted data with the configuration file such as passwords or access tokens.
1 2 3 | travis_pubkey(repo)
travis_encrypt(data, pubkey)
|
repo |
travis repository in "user/repo" format (similar to install_github) |
data |
raw or character vector to encrypt |
pubkey |
a key returned by |
Travis generates a unique RSA keypair for each repository and publishes the public key via an API. We can use this to encrypt small pieces of secret data (such as passwords or tokens) in a way that only the Travis servers can decipher.
http://docs.travis-ci.com/user/encryption-keys/
1 2 3 4 | # Encrypt environment variable
pubkey <- travis_pubkey("jeroenooms/jsonlite")
travis_encrypt("TOKEN=12345", pubkey)
travis_encrypt("TOKEN=12345", "jeroenooms/jsonlite")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.