blob: 48658fa24bb8dac9190acbf1a760917a3ffee9c5 [file] [log] [blame]
Marc Kupietzbc13b582022-04-10 08:43:33 +02001# use the tidyverse rocker image, as it contains devtools preinstalled
2image: rocker/tidyverse
3
4# define stages of runner. at the moment,
5# just test and build (no deploy).
6stages:
7 - test
8 - build
9
10# define test job
11test-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
19build-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()'