| # use the tidyverse rocker image, as it contains devtools preinstalled |
| image: rocker/verse |
| |
| # define stages of runner. at the moment, |
| # just test and build (no deploy). |
| stages: |
| - build |
| |
| build-and-check: |
| stage: build |
| before_script: |
| - apt-cache search libertinus |
| - apt-get update && apt-get install -y build-essential libglpk40 libxt6 fonts-linuxlibertine |
| - 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 |
| script: |
| # install & check |
| - R -e 'devtools::install()' |
| - R CMD build . && R CMD check --no-manual $(ls -t . | head -n1) |
| - PDFLATEX=lualatex RD2PDF_INPUTENC='inputenc}\usepackage{fontspec}\usepackage{libertinus' R CMD Rd2pdf -o rderekovecs.pdf --no-description . |
| artifacts: |
| paths: |
| - rderekovecs.pdf |