blob: 9723f909be652061fd56de6c3529d56eb79c8fb2 [file] [log] [blame]
Marc Kupietz4c384ef2023-10-20 20:18:50 +02001# use the tidyverse rocker image, as it contains devtools preinstalled
Marc Kupietzec7b9272023-10-25 07:24:24 +02002image: rocker/verse
Marc Kupietz4c384ef2023-10-20 20:18:50 +02003
4# define stages of runner. at the moment,
5# just test and build (no deploy).
6stages:
7 - build
8
9build-and-check:
10 stage: build
11 before_script:
Marc Kupietzec7b9272023-10-25 07:24:24 +020012 - apt-cache search libertinus
13 - apt-get update && apt-get install -y build-essential libglpk40 libxt6 fonts-linuxlibertine
14 - tlmgr install amsmath auxhook etoolbox fontspec gettitlestring hycolor hyperref infwarerr intcalc iftex kvdefinekeys kvoptions kvsetkeys letltxmacro libertinus libertinus-otf libertinus-fonts ltxcmds lualatex-math luatexbase pdftexcmds pdfescape pdflscape pdftexcmds refcount rerunfilecheck selnolig setspace stringenc tabu threeparttable threeparttablex trimspaces ulem unicode-math
Marc Kupietz4c384ef2023-10-20 20:18:50 +020015 script:
16 # install & check
17 - R -e 'devtools::install()'
18 - R CMD build . && R CMD check --no-manual $(ls -t . | head -n1)
Marc Kupietzec7b9272023-10-25 07:24:24 +020019 - PDFLATEX=lualatex RD2PDF_INPUTENC='inputenc}\usepackage{fontspec}\usepackage{libertinus' R CMD Rd2pdf -o rderekovecs.pdf --no-description .
20 artifacts:
21 paths:
22 - rderekovecs.pdf