From 44f261b55f17f093521b42907d767cc3d34ac539 Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Sat, 5 Jan 2019 22:26:54 +0100 Subject: [PATCH] R release and devel test --- .gitlab-ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5fc39f0d..23bfd0f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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