stages: - check - regression - revdepcheck default: before_script: - echo "setwd(\"$(pwd)\")" > .Rprofile - echo ".libPaths <- c(Sys.getenv(\"R_LIBS_USER\"), .libPaths())" >> .Rprofile - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH - R -e 'remotes::install_deps(dep = TRUE)' .regression: stage: regression script: - Rscript tests/testthat/regression_tests.R stable - R CMD INSTALL . - Rscript tests/testthat/regression_tests.R dev - Rscript tests/testthat/regression_tests.R compare .check: stage: check script: - R -e 'rcmdcheck::rcmdcheck(args = ifelse(as.logical(Sys.getenv("NOT_CRAN")), "", "--as-cran"), error_on = "warning")' .check_not_cran: variables: NOT_CRAN: "true" extends: .check .check_as_cran: variables: NOT_CRAN: "false" extends: .check regression_patched: variables: R_VERSION: "patched" extends: .regression regression_devel: only: refs: - schedules variables: R_VERSION: "devel" extends: .regression regression_oldrel: only: refs: - schedules variables: R_VERSION: "oldrel" extends: .regression check_not_cran_patched: variables: R_VERSION: "patched" extends: .check_not_cran check_as_cran_patched: variables: R_VERSION: "patched" extends: .check_as_cran check_not_cran_devel: only: refs: - tags - schedules variables: R_VERSION: "devel" extends: .check_not_cran check_as_cran_devel: only: refs: - tags - schedules variables: R_VERSION: "devel" extends: .check_as_cran check_not_cran_oldrel: only: refs: - tags - schedules variables: R_VERSION: "oldrel" extends: .check_not_cran check_as_cran_oldrel: only: refs: - tags - schedules variables: R_VERSION: "oldrel" extends: .check_as_cran revdepcheck_patched: stage: revdepcheck only: refs: - tags - schedules 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()' artifacts: paths: - revdep/README.md - revdep/problems.md - revdep/failures.md - revdep/cran.md