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

ci: add check and deployment of pkgdown website

Refs #3
parent 89182210
No related branches found
No related tags found
No related merge requests found
Pipeline #312372 failed
stages:
- checks
- deploy
default:
tags: [docker]
image: rocker/geospatial: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 'if (!require(devtools)) install.packages(c("devtools"))'
- R -q -e 'devtools::install(dependencies = TRUE)'
check:
variables:
NOT_CRAN: "true"
stage: checks
script:
- R -q -e 'devtools::check(vignettes = FALSE, error_on = "error")'
pages:
stage: deploy
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
script:
- R -q -e 'pkgdown::build_site()'
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