1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 18:46:13 +01:00

Update .gitlab-ci.yml

This commit is contained in:
dr. M.S. (Matthijs) Berends 2018-10-24 18:26:21 +00:00
parent 0fefd73ae4
commit 986f795cb2

View File

@ -1,8 +1,7 @@
# from https://stackoverflow.com/questions/51866926 # from https://stackoverflow.com/questions/51866926
# and https://github.com/jangorecki/r.gitlab.ci # and https://github.com/jangorecki/r.gitlab.ci
# https://hub.docker.com/r/rocker/ # how the images work: https://hub.docker.com/r/rocker/r-ver/
# image: rocker/r-base
stages: stages:
- build - build
@ -14,7 +13,7 @@ R 3.3:
script: script:
- apt-get update - apt-get update
# install dependencies for package # install dependencies for package
- apt-get install --yes --no-install-recommends libxml2 libssl-dev libcurl4-openssl-dev - apt-get install --yes --no-install-recommends libxml2 libssl-dev libcurl4-openssl-dev zlib1g-dev
- R -e 'install.packages(c("devtools", "testthat"))' - R -e 'install.packages(c("devtools", "testthat"))'
- R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))' - R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))'
# remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file # remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file
@ -30,7 +29,7 @@ R 3.4:
script: script:
- apt-get update - apt-get update
# install dependencies for package # install dependencies for package
- apt-get install --yes --no-install-recommends libxml2 libssl-dev libcurl4-openssl-dev - apt-get install --yes --no-install-recommends libxml2 libssl-dev libcurl4-openssl-dev zlib1g-dev
- R -e 'install.packages(c("devtools", "testthat"))' - R -e 'install.packages(c("devtools", "testthat"))'
- R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))' - R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))'
# remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file # remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file
@ -46,7 +45,7 @@ R 3.5:
script: script:
- apt-get update - apt-get update
# install dependencies for package # install dependencies for package
- apt-get install --yes --no-install-recommends libxml2 libssl-dev libcurl4-openssl-dev - apt-get install --yes --no-install-recommends libxml2 libssl-dev libcurl4-openssl-dev zlib1g-dev
- R -e 'install.packages(c("devtools", "testthat"))' - R -e 'install.packages(c("devtools", "testthat"))'
- R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))' - R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))'
# remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file # remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file