Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
8fdbce02
Commit
8fdbce02
authored
Apr 07, 2021
by
Dorchies David
Browse files
ci: redefine check "as cran" and "not cran"
Refs
#86
parent
7fda30e5
Pipeline
#22078
passed with stages
in 8 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8fdbce02
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment