The goal of travis is to simplify the setup of continuous integration with Travis CI.
Apart from automating away a few button flips, it also provides an easy method to set up push access which can be then triggered (on Travis) by the companion package tic via the use_tic()
function, which performs the following steps:
.travis.yml
fileappveyor.yml
filetic.R
file depending on the repo type
(package, website, bookdown, ...)Fine-grained control is available through more specialized functions, see the examples below.
You can install travis from github with:
# install.packages("remotes")
remotes::install_github("ropenscilabs/travis")
The package is linked to the "rtravis" application, and will request GitHub permissions to carry out its actions. Revoking these permissions also invalidates any SSH keys created by this package.
Create a repository on GitHub (if it's not there yet)
r
github_create_repo()
Show the GitHub repository name
r
github_repo()
Turn on Travis for this repo (syncs from GitHub if necessary!)
r
travis_enable()
Browse the repo on Travis
r
travis_browse()
Set up push access for Travis: This creates an SSH key, stores it as encoded encrypted environment variable on Travis, and enables push access for the corresponding public key. GitHub notifies you via e-mail.
r
use_travis_deploy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.