Marc Kupietz | 4c384ef | 2023-10-20 20:18:50 +0200 | [diff] [blame^] | 1 | # use the tidyverse rocker image, as it contains devtools preinstalled |
| 2 | image: rocker/tidyverse |
| 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: |
| 12 | - apt-get update && apt-get install -y build-essential libglpk40 libxt6 |
| 13 | script: |
| 14 | # install & check |
| 15 | - R -e 'devtools::install()' |
| 16 | - R CMD build . && R CMD check --no-manual $(ls -t . | head -n1) |