travis_lint: Linting

View source: R/travis-lint.R

travis_lintR Documentation

Linting

Description

This checks if a .travis.yml file is valid, and identifies possible errors.

Usage

travis_lint(
  file = ".travis.yml",
  repo = github_repo(),
  endpoint = get_endpoint(),
  quiet = FALSE
)

Arguments

file

A character string specifying a path to a .travis.yml file or a URL.

repo

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

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.

quiet

If TRUE, console output is suppressed.

Details

This function may incorrectly report valid .travis.yml files as broken, in particular if language: r is used (which is the default for R projects).

Value

A list.

Examples

## Not run: 
travis_lint()

## End(Not run)

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