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

Debug issue with GitLab CI: package deldir not found

parent 79434610
Pipeline #10975 failed with stages
in 29 minutes and 28 seconds
......@@ -10,7 +10,6 @@
^cran-comments\.md$
^public/
^R/pkg_deps.R
^CONDUCT\.md$
^inst/Example
^dev
......
......@@ -18,7 +18,7 @@ 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_USER: "$CI_PROJECT_DIR/ci/lib"
CHECK_DIR: "$CI_PROJECT_DIR/ci/logs"
BUILD_LOGS_DIR: "$CI_PROJECT_DIR/ci/logs/$CI_PROJECT_NAME.Rcheck"
......@@ -28,11 +28,16 @@ test:
# system requirements
- apt-get install -y libv8-dev libjq-dev libprotobuf-dev protobuf-compiler 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 '.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_USER
after_script:
- R -e 'covr::package_coverage(Sys.getenv("CI_PROJECT_DIR"))'
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