Commit 25129bbf authored by Dorchies David's avatar Dorchies David
Browse files

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
parent 57ef2a9f
No related merge requests found
Showing with 9 additions and 3 deletions
+9 -3
...@@ -4,7 +4,8 @@ stages: ...@@ -4,7 +4,8 @@ stages:
- revdepcheck - revdepcheck
variables: variables:
R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib" R_CI: "$CI_PROJECT_DIR/ci"
R_LIBS_USER: "$R_CI/lib"
default: default:
tags: [docker] tags: [docker]
...@@ -12,7 +13,7 @@ default: ...@@ -12,7 +13,7 @@ default:
cache: cache:
key: "airGR-${R_VERSION}" key: "airGR-${R_VERSION}"
paths: paths:
- $R_LIBS_USER - $R_CI
before_script: before_script:
- mkdir -p $R_LIBS_USER - mkdir -p $R_LIBS_USER
...@@ -139,9 +140,14 @@ revdepcheck_devel: ...@@ -139,9 +140,14 @@ revdepcheck_devel:
- schedule - schedule
- master - master
extends: .R-devel extends: .R-devel
variables:
CRANCACHE_DIR: "$R_CI/R-crancache"
script: script:
- R -q -e 'remotes::install_github("https://github.com/r-lib/revdepcheck")' - 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 'stopifnot(all("+" == sapply(revdepcheck::revdep_summary(), "[[", "status")))'
- R -q -e 'if (any(sapply(revdepcheck::revdep_summary(), function(x) {any(x$cmp$change == 1)}))) stop()' - R -q -e 'if (any(sapply(revdepcheck::revdep_summary(), function(x) {any(x$cmp$change == 1)}))) stop()'
artifacts: artifacts:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment