Skip to content
Snippets Groups Projects
Commit 15f1df97 authored by David Dorchies's avatar David Dorchies
Browse files

ci: add R check and pkgdown::build_site

Refs #8
parent 068d17d6
No related branches found
No related tags found
No related merge requests found
Pipeline #120995 failed
stages:
- checks
- deploy
default:
tags: [docker]
image: rocker/r-ver:latest
variables:
CACHE_CI: "$CI_PROJECT_DIR/ci"
R_LIBS_USER: "$CACHE_CI/lib"
cache:
paths:
- $CACHE_CI
before_script:
- mkdir -p $R_LIBS_USER
- echo "R_LIBS='$R_LIBS_USER'" > .Renviron
- R -q -e 'remotes::install_deps(dep = T)'
test_all:
stage: checks
script:
- R -q -e 'testthat::test_local()'
check:
variables:
NOT_CRAN: "true"
stage: checks
script:
- R -q -e 'remotes::update_packages("rcmdcheck")'
- R -q -e 'rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")'
pages:
stage: deploy
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
script:
- R -q -e 'remotes::update_packages("pkgdown")'
- R -q -e 'pkgdown::build_site(override = list(destination = "public")'
artifacts:
paths:
- public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment