Failed to fetch fork details. Try again later.
-
Delaigue Olivier authorede615e164
This GitLab CI configuration is valid.
Learn more
Forked from
HYCAR-Hydro / airGR
Source project has a limited visibility.
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
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
- 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