Commit 34db013a authored by Dorchies David's avatar Dorchies David
Browse files

ci: update gitlab-ci.yml for regression tests (only for scheduled tests)

- Add intermediate "regression" stage for recording examples outputs of both RCRAN and current version in RDS files
- the regression tests will be automatically added in "tests" stage

Refs #59
Showing with 27 additions and 0 deletions
+27 -0
stages: stages:
- update_packages - update_packages
- build - build
- regression
- tests - tests
default: default:
...@@ -30,6 +31,16 @@ default: ...@@ -30,6 +31,16 @@ default:
untracked: true untracked: true
expire_in: 1 week expire_in: 1 week
.regression:
stage: regression
only:
refs:
- schedules
script:
- Rscript -e 'source("tests/testthat/store_examples.R"); StoreRefExampleResults("airGR");'
- R CMD INSTALL .
- Rscript -e 'source("tests/testthat/store_examples.R"); StoreTestExampleResults("airGR");'
.check_not_cran: .check_not_cran:
stage: tests stage: tests
variables: variables:
...@@ -52,6 +63,21 @@ build_patched: ...@@ -52,6 +63,21 @@ build_patched:
R_VERSION: "patched" R_VERSION: "patched"
extends: .build extends: .build
regression_patched:
variables:
R_VERSION: "patched"
extends: .regression
regression_devel:
variables:
R_VERSION: "devel"
extends: .regression
regression_oldrel:
variables:
R_VERSION: "oldrel"
extends: .regression
check_not_cran_patched: check_not_cran_patched:
variables: variables:
R_VERSION: "patched" R_VERSION: "patched"
...@@ -125,3 +151,4 @@ check_as_cran_oldrel: ...@@ -125,3 +151,4 @@ check_as_cran_oldrel:
variables: variables:
R_VERSION: "oldrel" R_VERSION: "oldrel"
extends: .check_as_cran extends: .check_as_cran
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