Marc Kupietz | 4c384ef | 2023-10-20 20:18:50 +0200 | [diff] [blame] | 1 | # use the tidyverse rocker image, as it contains devtools preinstalled |
Marc Kupietz | ec7b927 | 2023-10-25 07:24:24 +0200 | [diff] [blame] | 2 | image: rocker/verse |
Marc Kupietz | 4c384ef | 2023-10-20 20:18:50 +0200 | [diff] [blame] | 3 | |
| 4 | # define stages of runner. at the moment, |
| 5 | # just test and build (no deploy). |
| 6 | stages: |
| 7 | - build |
| 8 | |
| 9 | build-and-check: |
| 10 | stage: build |
| 11 | before_script: |
Marc Kupietz | ec7b927 | 2023-10-25 07:24:24 +0200 | [diff] [blame] | 12 | - 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 Kupietz | 4c384ef | 2023-10-20 20:18:50 +0200 | [diff] [blame] | 15 | script: |
| 16 | # install & check |
| 17 | - R -e 'devtools::install()' |
| 18 | - R CMD build . && R CMD check --no-manual $(ls -t . | head -n1) |
Marc Kupietz | ec7b927 | 2023-10-25 07:24:24 +0200 | [diff] [blame] | 19 | - PDFLATEX=lualatex RD2PDF_INPUTENC='inputenc}\usepackage{fontspec}\usepackage{libertinus' R CMD Rd2pdf -o rderekovecs.pdf --no-description . |
| 20 | artifacts: |
| 21 | paths: |
| 22 | - rderekovecs.pdf |