travis_lint: Linting

Description Usage Arguments Details Value Examples

View source: R/travis-lint.R

Description

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

Usage

1
2
travis_lint(file = ".travis.yml", repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

Arguments

file

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

repo

[string|numeric]
The GitHub repo slug, by default obtained through github_repo(). Alternatively, the Travis CI repo ID, e.g. obtained through travis_repo_id().

token

[Token2.0]
A Travis CI token obtained from travis_token() or auth_travis().

quiet

[flag]
Set to FALSE to suppress success message.

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

1
2
3
4
## Not run: 
travis_lint()

## End(Not run)

romainfrancois/travis documentation built on May 27, 2019, 1:49 p.m.