Commit cf5cac4c authored by Dorchies David's avatar Dorchies David
Browse files

ci: move regression_tests.R to testthat subdirectory to avoid execution by `R CMD CHECK`

Refs #69
Showing with 7 additions and 7 deletions
+7 -7
......@@ -34,9 +34,10 @@ default:
.regression:
stage: regression
script:
- Rscript tests/regression_tests.R stable
- Rscript tests/regression_tests.R dev
- Rscript tests/regression_tests.R compare
- 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_not_cran:
stage: tests
......
......@@ -10,7 +10,6 @@ StoreDevExampleResults <- function(
package = "airGR",
path = file.path("tests/tmp", Sys.getenv("R_VERSION"), "dev"),
...) {
devtools::install()
StoreExampleResults(package = package, path = path, ...)
}
......
......@@ -38,7 +38,7 @@ if (dir.exists(file.path(tmp_path, "stable")) & dir.exists(file.path(tmp_path, "
lapply(X = refVarFiles, CompareWithStable, testDir = file.path(tmp_path, "dev"), regIgnore = regIgnore)
} else {
stop("Regression tests compared to released version needs that you run the following instructions first:\n",
"Rscript -e 'source(\"tests/testthat/store_examples.R\"); StoreStableExampleResults(\"airGR\");'\n",
"R CMD INSTALL .\n",
"Rscript -e 'source(\"tests/testthat/store_examples.R\"); StoreDevExampleResults(\"airGR\");'\n")
"Rscript tests/testthat/regression_tests.R stable\n",
"R CMD INSTALL .\n",
"Rscript tests/testthat/regression_tests.R dev")
}
File moved
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