blob: 92f7eec34a842a993d247c5b84dad2ab0c44960e [file] [log] [blame]
Marc Kupietz6ac65072023-11-17 20:31:39 +01001# 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: korap
14 paths:
15 - ./cache
16
17 before_script:
18 - source `find .. -name section_helper.sh`
19
20 - start_section install_linux_packages "Installing missing Linux packages"
21 - apt-get update
22 - apt-get install -y libvulkan1 libu2f-udev build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev curl
23 - end_section install_linux_packages
24
25 - start_section install_r_packages "Installing missing R packages"
26 - R -e "install.packages(c('devtools', 'RKorAPClient', 'httr', 'shiny', 'shinythemes', 'highcharter'))"
27 - R -e 'devtools::install_git("https://korap.ids-mannheim.de/gerrit/IDS-Mannheim/idsThemeR")'
28 - end_section install_r_packages
29
30 script:
31 - start_section render "Running scripts"
32 - echo 'options(shiny.port=18000)' >> ~/.Rprofile
33 - R_CACHE_ROOTPATH=./cache Rscript shinyCorpusComposition.R &
34 - PID=$!
35 - sleep 10
36 - curl http://127.0.0.1:18000/
37 - kill $PID
38 - end_section render