module_travis: Generate Travis-CI file (GitHub only)

View source: R/build.R

module_travisR Documentation

Generate Travis-CI file (GitHub only)

Description

Write .travis.yml to working directory.

Usage

module_travis(flpth = getwd())

Arguments

flpth

Directory in which to create .travis.yml

Details

Validated outsider modules must have a .travis.yml in their repository. These .travis.yml are created with module_skeleton but can also be generated using this function.

Value

Logical

See Also

Other build: module_build(), module_check(), module_identities(), module_skeleton(), module_test(), module_upload()

Examples

library(outsider)

# a skeleton already comes with a .travis.yml
module_path <- module_skeleton(program_name = "goldenhind",
                               repo_user = "drake_on_github",
                               docker_user = "drake_on_docker",
                               service = 'github',
                               flpth = tempdir())
(file.exists(file.path(module_path, '.travis.yml')))
# but if it were deleted, needs updating or mistakenly edited ...
file.remove(file.path(module_path, '.travis.yml'))
# a new one can generated
module_travis(flpth = module_path)

AntonelliLab/outsider.devtools documentation built on June 20, 2022, 4:36 a.m.