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

Use images in Forgemia registry.

Need to handle different R and package versions.
parent dbcfc817
# Use the shiny-verse Docker image for the run
# (Includes, devtools, tidyverse, ...)
# https://hub.docker.com/r/rocker/shiny-verse/
image: registry.forgemia.inra.fr/umr-astre/mapmcda/mapmcda_testenv
pages:
stage: deploy
script:
......@@ -8,11 +14,6 @@ pages:
only:
- master
# Use the shiny-verse Docker image for the run
# (Includes, devtools, tidyverse, ...)
# https://hub.docker.com/r/rocker/shiny-verse/
image: rocker/shiny-verse
## Use built-in GitLab CI environment variables
## (https://docs.gitlab.com/ee/ci/variables/#predefined-variables-environment-variables)
## CI_PROJECT_DIR: full path to where the repository is cloned
......@@ -27,9 +28,9 @@ variables:
script:
- mkdir -p $R_LIBS $BUILD_LOGS_DIR
# system requirements
- apt-get update -qq
- apt-get install -y --no-install-recommends libv8-dev libjq-dev libprotobuf-dev protobuf-compiler qpdf libgdal-dev libproj-dev libudunits2-dev libglpk-dev
- R -e 'devtools::install_deps(dep = T, lib = Sys.getenv("R_LIBS"))'
# - apt-get update -qq
# - apt-get install -y --no-install-recommends libv8-dev libjq-dev libprotobuf-dev protobuf-compiler qpdf libgdal-dev libproj-dev libudunits2-dev libglpk-dev
# - R -e 'devtools::install_deps(dep = T, lib = Sys.getenv("R_LIBS"))'
- 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:
......@@ -39,13 +40,17 @@ variables:
paths:
- $BUILD_LOGS_DIR
test-oldrel:
<<: *test
image: mapmcda_testenv:oldrel
test-release:
<<: *test
image: rocker/shiny-verse
image: mapmcda_testenv:release
test-devel:
<<: *test
image: rocker/shiny-verse:devel
image: mapmcda_testenv:devel
after_script:
......
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