Commit 1db78145 authored by Facundo Muñoz's avatar Facundo Muñoz ®️
Browse files

GitLab CI: use $R_LIBS for cache to pass check.

parent 607fac9a
Pipeline #10985 passed with stages
in 30 minutes and 43 seconds
......@@ -18,25 +18,25 @@ image: rocker/shiny-verse
## CI_PROJECT_DIR: full path to where the repository is cloned
## CI_PROJECT_NAME is the project folder name
variables:
# R_LIBS_USER: "$CI_PROJECT_DIR/ci/lib"
R_LIBS: "$CI_PROJECT_DIR/ci/lib"
CHECK_DIR: "$CI_PROJECT_DIR/ci/logs"
BUILD_LOGS_DIR: "$CI_PROJECT_DIR/ci/logs/$CI_PROJECT_NAME.Rcheck"
test:
script:
- mkdir -p $R_LIBS_USER $BUILD_LOGS_DIR
- mkdir -p $R_LIBS $BUILD_LOGS_DIR
# system requirements
- apt-get install -y --no-install-recommends libv8-dev libjq-dev libprotobuf-dev protobuf-compiler qpdf libgdal-dev libproj-dev libudunits2-dev
- R -e 'devtools::install_deps(dep = T, lib = Sys.getenv("R_LIBS_USER"))'
- echo $R_LIBS_USER
- R -e 'Sys.getenv("R_LIBS_USER")'
- R -e 'devtools::install_deps(dep = T, lib = Sys.getenv("R_LIBS"))'
- echo $R_LIBS
- R -e 'Sys.getenv("R_LIBS")'
- R -e '.libPaths()'
- R -e 'installed.packages()["deldir",]'
- R -e 'devtools::check(check_dir = Sys.getenv("CHECK_DIR"))'
- R -e 'if (length(devtools::check_failures(path = Sys.getenv("BUILD_LOGS_DIR"), note = FALSE)) > 0) stop()'
# cache:
# paths:
# - $R_LIBS_USER
cache:
paths:
- $R_LIBS
after_script:
- R -e 'covr::package_coverage(Sys.getenv("CI_PROJECT_DIR"))'
......
Package: mapMCDA
Title: Produce an epidemiological risk map by weighting multiple risk
factors
Version: 0.4.38
Version: 0.4.39
Date: 2020-04-19
Authors@R: c( person("Andrea", "Apolloni", email =
"andrea.apolloni@cirad.fr", role = c("ctb"), comment = "Animal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment