Commit 8fdbce02 authored by Dorchies David's avatar Dorchies David
Browse files

ci: redefine check "as cran" and "not cran"

Refs #86
Showing with 1 addition and 3 deletions
+1 -3
......@@ -37,19 +37,17 @@ default:
.check:
stage: tests
script:
- R -e 'devtools::check(check_dir = Sys.getenv("CHECK_DIR"), cran = !as.logical(Sys.getenv("AS_CRAN")))'
- R -e 'devtools::check(check_dir = Sys.getenv("CHECK_DIR"), cran = !as.logical(Sys.getenv("NOT_CRAN")), env_vars = c(NOT_CRAN = Sys.getenv("NOT_CRAN")))'
- R -e 'if (length(devtools::check_failures(path = Sys.getenv("BUILD_LOGS_DIR"), note = FALSE)) > 0) stop()'
.check_not_cran:
variables:
NOT_CRAN: "true"
AS_CRAN: "false"
extends: .check
.check_as_cran:
variables:
NOT_CRAN: "false"
AS_CRAN: "true"
extends: .check
build_patched:
......
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