Commit df011d62 authored by Dorchies David's avatar Dorchies David
Browse files

ci: install tinytex and cache qpdf installation

Refs #53
parent 7e5f1bea
Pipeline #24889 failed with stage
in 3 minutes and 57 seconds
......@@ -7,10 +7,6 @@ default:
image: rocker/tidyverse:latest
cache:
paths:
- "$CI_PROJECT_DIR/ci/lib/"
variables:
R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib"
CHECK_DIR: "$CI_PROJECT_DIR/ci/logs"
......@@ -24,12 +20,16 @@ before_script:
- mkdir -p $R_LIBS_USER $BUILD_LOGS_DIR
- echo "R_LIBS='$R_LIBS_USER'" > .Renviron
- R -e 'if (!require("pacman")) install.packages("pacman")'
- R -e 'pacman::p_load("rcmdcheck", "tinytex", "qpdf")'
- R -e 'pacman::p_load("rcmdcheck", "tinytex")'
- R -e 'tinytex::install_tinytex()'
- if [[ ! -d "${R_LIBS_USER}/qpdf" ]]; then apt-get update && apt-get install -y --no-install-recommends qpdf && mkdir ${R_LIBS_USER}/qpdf && cp /usr/bin/{fix-qdf,qpdf,zlib-flate} ${R_LIBS_USER}/qpdf/; fi
- cp ${R_LIBS_USER}/qpdf/* /usr/bin/
- R -e 'devtools::install_deps(dep = T)'
.check:
stage: checks
script:
- if [[ $NOT_CRAN == "false" ]]; then R -e 'pacman::p_load("tinytex", "qpdf")' && R -e 'tinytex::install_tinytex()'
- R -e 'rcmdcheck::rcmdcheck(args = ifelse(as.logical(Sys.getenv("NOT_CRAN")), "--no-manual", "--as-cran"), error_on = "warning")'
check_not_cran:
......
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