1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-25 19:26:13 +01:00

R release and devel test

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-01-05 22:26:54 +01:00
parent d0c679e884
commit 44f261b55f

View File

@ -54,8 +54,8 @@ cache:
paths:
- installed_deps/
R-release:
image: rocker/r-ver:release
R-latest:
image: rocker/r-ver:latest
stage: build
allow_failure: true
script:
@ -71,6 +71,23 @@ R-release:
- '*.Rcheck/*'
expire_in: '1 month'
R-devel:
image: rocker/r-ver:devel
stage: build
allow_failure: true
script:
# remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file
- rm -rf vignettes
- Rscript -e 'd <- read.dcf("DESCRIPTION"); d[, colnames(d) == "VignetteBuilder"] <- NA; write.dcf(d, "DESCRIPTION"$
# build package
- R CMD build . --no-build-vignettes --no-manual
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
- R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual --as-cran
artifacts:
paths:
- '*.Rcheck/*'
expire_in: '1 month'
coverage:
stage: test
allow_failure: true