Skip to content
Snippets Groups Projects
Commit 92a1f2a9 authored by Sebastian Henz's avatar Sebastian Henz
Browse files

Run all in one session so the env var is set correctly. Fixes #54 for real

parent 20b4f8c5
No related branches found
No related tags found
1 merge request!33Fixes to tests and package checks
......@@ -5,16 +5,25 @@
# with "document = TRUE" (the default), which updates the .Rd files, but then
# forgetting to commit and push those updated .Rd files.
# Setting the environment variable "_R_CHECK_SYSTEM_CLOCK_" to 0
# to disable package time check, see issue #54
# Run the R commands under a single "R -e" so everything runs in
# the same R session.
# Note for the future: If there are going to be more R commands just put them
# in a separate R script and run that from here.
.check_template: &check_job_template
only:
- master
- merge_requests
- tags
script:
- R -e 'sessionInfo()'
- R -e 'Sys.setenv("_R_CHECK_SYSTEM_CLOCK_" = 0)' # disable time check, see issue #54
- R -e 'devtools::install_deps(quiet = TRUE)'
- R -e 'devtools::check(error_on = "note", document = FALSE)'
- R -e
"sessionInfo();
Sys.setenv('_R_CHECK_SYSTEM_CLOCK_' = 0);
devtools::install_deps(quiet = TRUE);
devtools::check(error_on = 'note', document = FALSE)"
# Earliest supported version
check-3.5.1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment