Skip to content
Snippets Groups Projects
Commit a27984ef authored by Johannes Boog's avatar Johannes Boog
Browse files

[ci] update test ci

parent e8882e7d
No related branches found
No related tags found
1 merge request!60Resolve "[feature] include new keywords by OGS v6.4.4"
......@@ -14,10 +14,15 @@ test:
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"
RENV_PATHS_CACHE: "$CI_PROJECT_DIR/cache"
RENV_PATHS_LIBRARY: "$CI_PROJECT_DIR/renv/library"
before_script:
# Install deps or load from renv
- R -e "if (!requireNamespace('renv', quietly = TRUE)) install.packages('renv')"
#- R -e 'renv::restore()'
- R -e 'renv::install()'
- R -e 'renv::install("bioc::rhdf5")'
script:
# 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
......@@ -28,6 +33,7 @@ test:
key: "$CI_COMMIT_REF_SLUG"
untracked: true
paths:
- "$RENV_PATHS_CACHE"
- "$RENV_PATHS_LIBRARY"
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "web"'
......
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