Commit 04e68e4b authored by Dorchies David's avatar Dorchies David
Browse files

ci: debugging regression tests

- Limit execution of regression test on patched R version
- Try fixing path issue
- Fix mispelling of `.regressionignore` file

Refs #69
parent 5951250e
Pipeline #17752 passed with stages
in 12 minutes and 24 seconds
......@@ -33,16 +33,14 @@ default:
.regression:
stage: regression
# only:
# refs:
# - schedules
variables:
NOT_CRAN: "true"
script:
- Rscript -e 'source("tests/testthat/store_examples.R"); StoreRefExampleResults("airGR");'
- R CMD INSTALL .
- Rscript -e 'source("tests/testthat/store_examples.R"); StoreTestExampleResults("airGR");'
- Rscript -e 'res <- testthat::test_file("tests/testthat/test-regression.R"); dRes = as.data.frame(res); if(any(dRes[,"failed"]>0) | any(dRes[,"error"])) {quit(status = 1)};'
- ls -l tests/tmp
- Rscript -e 'Sys.setenv(NOT_CRAN="true"); setwd("tests/testthat"); res <- testthat::test_file("test-regression.R"); dRes = as.data.frame(res); if(any(dRes[,"failed"]>0) | any(dRes[,"error"])) {quit(status = 1)};'
.check_not_cran:
stage: tests
......@@ -72,11 +70,17 @@ regression_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
......
......@@ -19,10 +19,10 @@ CompareWithRef <- function(refVarFile, testDir, regIgnore) {
})
}
}
print(getwd())
if (dir.exists("../tmp/ref") & dir.exists("../tmp/test")) {
refVarFiles <- list.files("../tmp/ref", recursive = TRUE, full.names = TRUE)
regIgnoreFile <- "../../.regressionignore2"
regIgnoreFile <- "../../.regressionignore"
if (file.exists(regIgnoreFile)) {
regIgnore <- read.table(file = regIgnoreFile,
sep = " ", header = FALSE, skip = 5,
......
Markdown is supported
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