blob: 1800a613fe674bb639e608624951dc8b66b025dc [file] [log] [blame]
Marc Kupietzb80aa782023-10-08 23:33:26 +02001# use the verse rocker image, as it contains tidyverse, devtools and some texlive
2image: rocker/tidyverse
3
4# define stages of runner. at the moment,
5# just build (no test or deploy).
6stages:
7 - build
8
9build-job:
10 stage: build
11
12 cache:
13 key: revealjs
14 paths:
15 - ./cache
16
17 artifacts:
18 paths:
19 - "target/*"
20
21 before_script:
22 - source `find .. -name section_helper.sh`
23
24 - start_section install_linux_packages "Installing missing Linux packages"
25 - apt-get update
Marc Kupietz61cddc12023-10-09 09:54:21 +020026 - apt-get install -y libu2f-udev fonts-liberation build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick curl
Marc Kupietzb80aa782023-10-08 23:33:26 +020027 - locale-gen de_DE.utf8 en_GB.utf8 en_US.utf8
28
29 - end_section install_linux_packages
30
31 - start_section install_r_packages "Installing missing R packages"
32 - R -e "install.packages(c('devtools', 'RKorAPClient', 'httr', 'tidytext', 'httpuv', 'scales', 'sp', 'raster', 'kableExtra', 'DT', 'svglite', 'qrcode', 'rsvg'))"
33 - R -e 'devtools::install_git("https://korap.ids-mannheim.de/gerrit/IDS-Mannheim/idsThemeR")'
Marc Kupietz2b548bc2023-10-09 07:21:59 +020034 - R -e 'devtools::install(".")'
Marc Kupietz289f9972023-10-09 09:49:12 +020035 - curl -O --output-dir /tmp/ https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/raw/master/R/common.R
Marc Kupietzb80aa782023-10-08 23:33:26 +020036 - end_section install_r_packages
37
38 script:
39 - start_section render "Running scripts"
40 - R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('examples/ids.Rmd', output_format='revealjs::revealjs_presentation', output_dir='target')"
41 - end_section render