Commit 5a7d7d9d authored by Dorchies David's avatar Dorchies David
Browse files

ci: test revdepcheck test

Refs #86
parent 8fdbce02
Pipeline #22080 passed with stages
in 25 minutes and 2 seconds
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()'
Markdown is supported
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