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
5a7d7d9d
Commit
5a7d7d9d
authored
Apr 07, 2021
by
Dorchies David
Browse files
ci: test revdepcheck test
Refs
#86
parent
8fdbce02
Pipeline
#22080
passed with stages
in 25 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5a7d7d9d
stages
:
-
build
-
check
-
regression
-
tests
-
revdepcheck
variables
:
R_LIBS_USER
:
"
$CI_PROJECT_DIR/ci/lib"
...
...
@@ -35,7 +36,7 @@ default:
-
Rscript tests/testthat/regression_tests.R compare
.check
:
stage
:
tests
stage
:
check
script
:
-
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()'
...
...
@@ -139,3 +140,12 @@ check_as_cran_oldrel:
variables
:
R_VERSION
:
"
oldrel"
extends
:
.check_as_cran
revdepcheck_patched
:
stage
:
revdepcheck
variables
:
R_VERSION
:
"
patched"
script
:
-
R -e 'remotes::install_github("https://github.com/r-lib/revdepcheck")'
-
R -e 'revdepcheck::revdep_check(num_workers = 2)'
-
R -e 'if (any(sapply(revdepcheck::revdep_summary(), function(x) {any(x$cmp$change == 1)}))) stop()'
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