2018-10-23 14:59:36 +02:00
|
|
|
# from https://stackoverflow.com/questions/51866926
|
|
|
|
image: rocker/r-base
|
2018-10-23 16:49:40 +02:00
|
|
|
gitlab:
|
2018-10-23 14:59:36 +02:00
|
|
|
script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install --yes --no-install-recommends r-cran-testthat r-cran-devtools
|
2018-10-23 16:49:40 +02:00
|
|
|
- R -e "devtools::install_deps(dependencies = TRUE)"
|
2018-10-23 14:53:42 +02:00
|
|
|
- R CMD build . --no-build-vignettes --no-manual
|
|
|
|
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
|
2018-10-23 16:49:40 +02:00
|
|
|
- R CMD check "${PKG_FILE_NAME}" --no-manual --as-cran
|