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