From 5a7d7d9dc52810cab16a18ce91283d240d6172d4 Mon Sep 17 00:00:00 2001 From: Dorchies David <david.dorchies@inrae.fr> Date: Wed, 7 Apr 2021 10:39:08 +0200 Subject: [PATCH] ci: test revdepcheck test Refs #86 --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86e351a1..5bededf4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,8 @@ stages: - build + - check - regression - - tests + - revdepcheck variables: R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib" @@ -35,7 +36,7 @@ default: - Rscript tests/testthat/regression_tests.R compare .check: - stage: tests + stage: check script: - R -e 'devtools::check(check_dir = Sys.getenv("CHECK_DIR"), cran = !as.logical(Sys.getenv("NOT_CRAN")), env_vars = c(NOT_CRAN = Sys.getenv("NOT_CRAN")))' - R -e 'if (length(devtools::check_failures(path = Sys.getenv("BUILD_LOGS_DIR"), note = FALSE)) > 0) stop()' @@ -139,3 +140,12 @@ check_as_cran_oldrel: variables: R_VERSION: "oldrel" extends: .check_as_cran + +revdepcheck_patched: + stage: revdepcheck + variables: + R_VERSION: "patched" + script: + - R -e 'remotes::install_github("https://github.com/r-lib/revdepcheck")' + - R -e 'revdepcheck::revdep_check(num_workers = 2)' + - R -e 'if (any(sapply(revdepcheck::revdep_summary(), function(x) {any(x$cmp$change == 1)}))) stop()' -- GitLab