mirror of
https://github.com/msberends/AMR.git
synced 2024-12-25 07:26:12 +01:00
R release test
This commit is contained in:
parent
44f261b55f
commit
5c6ff1bbda
@ -25,7 +25,7 @@ stages:
|
||||
- deploy
|
||||
|
||||
# debian stretch only contains R 3.3...
|
||||
#image: debian:buster-slim
|
||||
image: debian:buster-slim
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
@ -54,8 +54,7 @@ cache:
|
||||
paths:
|
||||
- installed_deps/
|
||||
|
||||
R-latest:
|
||||
image: rocker/r-ver:latest
|
||||
R:
|
||||
stage: build
|
||||
allow_failure: true
|
||||
script:
|
||||
@ -71,23 +70,6 @@ R-latest:
|
||||
- '*.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
|
||||
|
Loading…
Reference in New Issue
Block a user