Marc Kupietz | bc13b58 | 2022-04-10 08:43:33 +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: |
Marc Kupietz | bc13b58 | 2022-04-10 08:43:33 +0200 | [diff] [blame] | 7 | - build |
| 8 | |
Marc Kupietz | 7f82781 | 2022-04-10 08:56:01 +0200 | [diff] [blame] | 9 | build-and-check: |
Marc Kupietz | bc13b58 | 2022-04-10 08:43:33 +0200 | [diff] [blame] | 10 | stage: build |
| 11 | before_script: |
| 12 | - apt-get update && apt-get install -y build-essential libglpk40 libxt6 |
| 13 | script: |
Marc Kupietz | 7f82781 | 2022-04-10 08:56:01 +0200 | [diff] [blame] | 14 | # install & check |
Marc Kupietz | bc13b58 | 2022-04-10 08:43:33 +0200 | [diff] [blame] | 15 | - R -e 'devtools::install()' |
Marc Kupietz | 7f82781 | 2022-04-10 08:56:01 +0200 | [diff] [blame] | 16 | - R CMD build . && R CMD check --no-manual $(ls -t . | head -n1) |