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
Status Job ID Name Coverage
  Update Packages
passed #103917
update_packages_devel

00:00:16

passed #103918
update_packages_oldrel

00:00:13

passed #103916
update_packages_patched

00:00:15

 
  Build
passed #103920
build_devel

00:00:36

passed #103921
build_oldrel

00:00:39

passed #103919
build_patched

00:00:36

 
  Regression
failed #103923
regression_devel

00:00:02

failed #103924
regression_oldrel

00:00:02

failed #103922
regression_patched

00:00:02

 
  Tests
skipped #103928
check_as_cran_devel
skipped #103930
check_as_cran_oldrel
skipped #103926
check_as_cran_patched
skipped #103927
check_not_cran_devel
skipped #103929
check_not_cran_oldrel
skipped #103925
check_not_cran_patched
 
Name Stage Failure
failed
regression_oldrel Regression
$ echo "setwd(\"$(pwd)\")" > .Rprofile
$ PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
$ rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
$ Rscript -e 'source("tests/testthat/store_examples.R"); StoreRefExampleResults("airGR");'
Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
Calls: StoreRefExampleResults -> install.packages -> startsWith -> contrib.url
Exécution arrêtée
ERROR: Job failed: exit status 1
failed
regression_devel Regression
$ echo "setwd(\"$(pwd)\")" > .Rprofile
$ PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
$ rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
$ Rscript -e 'source("tests/testthat/store_examples.R"); StoreRefExampleResults("airGR");'
Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
Calls: StoreRefExampleResults -> install.packages -> startsWith -> contrib.url
Exécution arrêtée
ERROR: Job failed: exit status 1
failed
regression_patched Regression
$ echo "setwd(\"$(pwd)\")" > .Rprofile
$ PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
$ rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
$ Rscript -e 'source("tests/testthat/store_examples.R"); StoreRefExampleResults("airGR");'
Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
Calls: StoreRefExampleResults -> install.packages -> startsWith -> contrib.url
Exécution arrêtée
ERROR: Job failed: exit status 1