Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UMR-ASTRE
mapMCDA
Commits
0441e8e1
Commit
0441e8e1
authored
Jun 05, 2020
by
Facundo Muñoz
®️
Browse files
Use images in Forgemia registry.
Need to handle different R and package versions.
parent
dbcfc817
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0441e8e1
# 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-ver
se
image
:
mapmcda_testenv:relea
se
test-devel
:
<<
:
*test
image
:
rocker/shiny-verse
:devel
image
:
mapmcda_testenv
:devel
after_script
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment