| # use the tidyverse rocker image, as it contains devtools preinstalled |
| image: rocker/tidyverse |
| |
| # define stages of runner. at the moment, |
| # just test and build (no deploy). |
| stages: |
| - test |
| - build |
| |
| # define test job |
| test-job: |
| stage: test |
| script: |
| # run the R CMD check on the package (this path) |
| - R CMD BUILD . && R CMD CHECK $(ls -t . | head -n1) |
| # run the devtools test |
| # - R -e 'devtools::test()' |
| |
| build-job: |
| stage: build |
| before_script: |
| - apt-get update && apt-get install -y build-essential libglpk40 libxt6 |
| script: |
| # install |
| - R -e 'devtools::install()' |