Commit 9d2507fa authored by Dorchies David's avatar Dorchies David
Browse files

ci: add check and pkgdown website generation

parent c2a00a72
Pipeline #25560 passed with stages
in 2 minutes and 18 seconds
stages:
- check
- website
default:
tags: [docker]
image: rocker/tidyverse:4.0.5
variables:
R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib"
CHECK_DIR: "$CI_PROJECT_DIR/ci/logs"
BUILD_LOGS_DIR: "$CI_PROJECT_DIR/ci/logs/$CI_PROJECT_NAME.Rcheck"
cache:
paths:
- $R_LIBS_USER
before_script:
- mkdir -p $R_LIBS_USER $BUILD_LOGS_DIR
- echo "R_LIBS='$R_LIBS_USER'" > .Renviron
- R -e 'devtools::install_deps(dep = T)'
check:
stage: check
script:
- if [[ $NOT_CRAN == "false" ]]; then sudo apt-get update && sudo apt-get install -y qpdf; fi
- R -e 'rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning")'
website:
stage: website
only:
- master
- dev
- tags
script:
- R -e 'devtools::update_packages(packages = "pkgdown")'
- R -e 'pkgdown::build_site()'
- sudo apt-get update && sudo apt-get install -y sshpass rsync
- sshpass -p "${OVH_PASS}" rsync -a -e "ssh -o StrictHostKeyChecking=no" docs/ ${OVH_LOGIN}@${OVH_SFTP}:/home/${OVH_LOGIN}/in-wop/bnpe/
url: https://in-wop.g-eau.fr/bnpe
development:
mode: unreleased
template:
params:
bootswatch: flatly
navbar:
structure:
right: [gitlab]
components:
github: ~
gitlab:
icon: fab fa-gitlab fa-lg
href: https://gitlab.irstea.fr/in-wop/bnpe
repo:
url:
home: https://gitlab.irstea.fr/in-wop/bnpe/
source: https://gitlab.irstea.fr/in-wop/bnpe/-/blob/master/
issue: https://gitlab.irstea.fr/in-wop/bnpe/-/issues/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment