travis_enable: Activate Travis CI

View source: R/travis-enable.R

travis_enableR Documentation

Activate Travis CI

Description

Activating Travis CI, and querying activity status.

travis_enable() activates or deactivates Travis CI for a repo.

travis_is_enabled() returns if Travis CI is active for a repo.

Usage

travis_enable(
  active = TRUE,
  repo = github_info(remote = remote)$full_name,
  remote = "origin",
  endpoint = get_endpoint()
)

travis_is_enabled(repo = github_repo(), endpoint = get_endpoint())

Arguments

active

[flag]
Set to FALSE to deactivate instead of activating.

repo

[string]
The repository slug to use. Must follow the "user/repo" structure.

remote

[string]
The Github remote which should be used. Defaults to "origin".

endpoint

[string]
Which Travis endpoint to use. Defaults to ".org". Accepted values are ".com" and ".org". Can be set globally via env var R_TRAVIS.


ropenscilabs/travis documentation built on May 18, 2022, 8:33 p.m.