Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
r2ogs6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OpenGeoSys Tools
r2ogs6
Commits
9a9bc838
Commit
9a9bc838
authored
1 year ago
by
Johannes Boog
Browse files
Options
Downloads
Patches
Plain Diff
[ci] update ci to use renv
parent
4e9ba11c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!59
78 packrat to renv
,
!58
78 packrat to renv
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-10
7 additions, 10 deletions
.gitlab-ci.yml
with
7 additions
and
10 deletions
.gitlab-ci.yml
+
7
−
10
View file @
9a9bc838
...
...
@@ -6,21 +6,18 @@ stages:
-
test
test
:
image
:
$CI_REGISTRY_IMAGE:
09092022
image
:
$CI_REGISTRY_IMAGE:
24032023
stage
:
test
tags
:
-
envinf2
variables
:
R_LIBS_USER
:
"
$CI_PROJECT_DIR/ci/lib/"
RETICULATE_MINICONDA_PATH
:
"
/root/.local/share/r-miniconda/"
#default path
RETICULATE_MINICONDA_PATH
:
"
/root/.local/share/r-miniconda/"
RETICULATE_PYTHON_ENV
:
"
/root/.local/share/r-miniconda/envs/r-reticulate/"
RENV_CONFIG_EXTERNAL_LIBRARIES
:
"
/usr/local/lib/R/site-library:/usr/local/lib/R/library"
RENV_PATHS_LIBRARY
:
"
$CI_PROJECT_DIR/ci/renv/library"
script
:
-
if [ ! -d "$R_LIBS_USER" ]; then mkdir -p "$R_LIBS_USER"; fi
-
R -e 'withr::with_libpaths(new = Sys.getenv("R_LIBS_USER"), devtools::install_deps(dependencies = T))'
# checks if the packages from the Imports, Suggests, LinkinTo field
# are already installed in the cache
-
R -e '.libPaths(new = Sys.getenv("R_LIBS_USER"))'
-
R -e 'withr::with_libpaths(new = Sys.getenv("R_LIBS_USER"), {install.packages("BiocManager"); BiocManager::install("rhdf5")})'
# Install deps or load from renv cache
-
R -e 'renv::restore()'
# Build and Check r2ogs6
-
R CMD build . --no-build-vignettes --no-manual
-
R CMD check $(ls -1t *.tar.gz | head -n 1) --no-build-vignettes --no-manual
...
...
@@ -31,7 +28,7 @@ test:
key
:
"
$CI_COMMIT_REF_SLUG"
untracked
:
true
paths
:
-
"
$R
_LIBS_USER
"
-
"
$R
ENV_PATHS_LIBRARY
"
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
||
$CI_PIPELINE_SOURCE
==
"web"'
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment