Commit 8d850630 authored by Dorchies David's avatar Dorchies David
Browse files

ci: add check and pkgdown website generation

parent 6cc680c5
No related merge requests found
Pipeline #25551 passed with stages
in 1 minute and 27 seconds
Showing with 62 additions and 0 deletions
+62 -0
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}/hatata/
_pkgdown.yml 0 → 100644
url: https://hatata.dorchies.net
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/david.dorchies/hatata
repo:
url:
home: https://gitlab.irstea.fr/david.dorchies/hatata/
source: https://gitlab.irstea.fr/david.dorchies/hatata/-/blob/master/
issue: https://gitlab.irstea.fr/david.dorchies/hatata/-/issues/
Supports Markdown
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