Add .gitlab-ci.yml file in your current project from template
use_gitlab_ci(
image = "rocker/verse:latest",
path = ".gitlab-ci.yml",
overwrite = TRUE,
add_to_Rbuildignore = TRUE,
type = "check-coverage-pkgdown",
upgrade = TRUE
)
Docker image to use in GitLab ci. If NULL, not specified!
destination path for writing GitLab CI yml file
whether to overwrite existing GitLab CI yml file
add CI yml file and cache path used inside the CI workflow to .Rbuildignore?
type of the CI template to use
whether to upgrade the R packages to the latest version during the CI. Default to TRUE.
Used for side effects. Creates a .gitlab-ci.yml file in your directory.
Types available are:
"check-coverage-pkgdown": Check package along with Code coverage with 'covr' and 'pkgdown' site on GitLab Pages
"check-coverage-pkgdown-renv": Check package built in a fixed 'renv' state along with Code coverage with 'covr' and 'pkgdown' site on GitLab Pages.
"bookdown": Build 'bookdown' HTML and PDF site on GitLab Pages
"bookdown-production": Build 'bookdown' HTML and PDF site on GitLab Pages. Where there will be a version of the book for each branch deployed. See https://github.com/statnmap/GitLab-Pages-Deploy for setup details.
# Create in another directory
use_gitlab_ci(
image = "rocker/verse:latest",
path = tempfile(fileext = ".yml")
)
#> GitLab CI file created at /tmp/Rtmpd5aMkf/file166974f21252.yml
if (FALSE) {
# Create in your current project with template for packages checking
use_gitlab_ci(image = "rocker/verse:latest", type = "check-coverage-pkgdown")
}