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

ci: test revdepcheck test

Refs #86
Showing with 12 additions and 2 deletions
+12 -2
stages: stages:
- build - build
- check
- regression - regression
- tests - revdepcheck
variables: variables:
R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib" R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib"
...@@ -35,7 +36,7 @@ default: ...@@ -35,7 +36,7 @@ default:
- Rscript tests/testthat/regression_tests.R compare - Rscript tests/testthat/regression_tests.R compare
.check: .check:
stage: tests stage: check
script: 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 '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()' - 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: ...@@ -139,3 +140,12 @@ check_as_cran_oldrel:
variables: variables:
R_VERSION: "oldrel" R_VERSION: "oldrel"
extends: .check_as_cran 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()'
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