mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 19:26:12 +01:00
R release and devel test
This commit is contained in:
parent
d0c679e884
commit
44f261b55f
@ -54,8 +54,8 @@ cache:
|
|||||||
paths:
|
paths:
|
||||||
- installed_deps/
|
- installed_deps/
|
||||||
|
|
||||||
R-release:
|
R-latest:
|
||||||
image: rocker/r-ver:release
|
image: rocker/r-ver:latest
|
||||||
stage: build
|
stage: build
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
@ -71,6 +71,23 @@ R-release:
|
|||||||
- '*.Rcheck/*'
|
- '*.Rcheck/*'
|
||||||
expire_in: '1 month'
|
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:
|
coverage:
|
||||||
stage: test
|
stage: test
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
Loading…
Reference in New Issue
Block a user