From 25129bbfca121cd53fe93ef60171f954b4f8f7e4 Mon Sep 17 00:00:00 2001 From: Dorchies David <david.dorchies@inrae.fr> Date: Thu, 10 Mar 2022 17:55:31 +0100 Subject: [PATCH] fix(ci): revdepcheck time out on airGRiwrm - Add crancache to the gitlab-ci cache - install dependencies before check - extend time out to 30 minutes Refs #148 --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c80360b..6b0cd88 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,8 @@ stages: - revdepcheck variables: - R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib" + R_CI: "$CI_PROJECT_DIR/ci" + R_LIBS_USER: "$R_CI/lib" default: tags: [docker] @@ -12,7 +13,7 @@ default: cache: key: "airGR-${R_VERSION}" paths: - - $R_LIBS_USER + - $R_CI before_script: - mkdir -p $R_LIBS_USER @@ -139,9 +140,14 @@ revdepcheck_devel: - schedule - master extends: .R-devel + variables: + CRANCACHE_DIR: "$R_CI/R-crancache" + script: - R -q -e 'remotes::install_github("https://github.com/r-lib/revdepcheck")' - - R -q -e 'revdepcheck::revdep_check(timeout = as.difftime(20, units = "mins"))' + - R -q -e 'remotes::update_packages("crancache")' + - R -q -e 'library(crancache); remotes::update_packages(revdepcheck::cran_revdeps("airGR"))' + - R -q -e 'revdepcheck::revdep_check(timeout = as.difftime(30, units = "mins"))' - R -q -e 'stopifnot(all("+" == sapply(revdepcheck::revdep_summary(), "[[", "status")))' - R -q -e 'if (any(sapply(revdepcheck::revdep_summary(), function(x) {any(x$cmp$change == 1)}))) stop()' artifacts: -- GitLab