| 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: | 
|  | 7 | - test | 
|  | 8 | - build | 
|  | 9 |  | 
|  | 10 | # define test job | 
|  | 11 | test-job: | 
|  | 12 | stage: test | 
|  | 13 | script: | 
|  | 14 | # run the R CMD check on the package (this path) | 
|  | 15 | - R CMD BUILD . && R CMD CHECK $(ls -t . | head -n1) | 
|  | 16 | # run the devtools test | 
|  | 17 | # - R -e 'devtools::test()' | 
|  | 18 |  | 
|  | 19 | build-job: | 
|  | 20 | stage: build | 
|  | 21 | before_script: | 
|  | 22 | - apt-get update && apt-get install -y build-essential libglpk40 libxt6 | 
|  | 23 | script: | 
|  | 24 | # install | 
|  | 25 | - R -e 'devtools::install()' |