mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 19:26:12 +01:00
try rocker docker
This commit is contained in:
parent
501f5db020
commit
cf54201088
@ -24,8 +24,7 @@ stages:
|
|||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
# debian stretch only contains R 3.3...
|
image: rocker/r-base
|
||||||
image: debian:buster-slim
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq
|
- apt-get update -qq
|
||||||
@ -57,10 +56,8 @@ cache:
|
|||||||
|
|
||||||
R-release:
|
R-release:
|
||||||
stage: build
|
stage: build
|
||||||
image: debian:buster-slim
|
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
script:
|
script:
|
||||||
- apt-get install -y r-base
|
|
||||||
- Rscript -e 'sessionInfo()'
|
- Rscript -e 'sessionInfo()'
|
||||||
# install missing and outdated packages
|
# install missing and outdated packages
|
||||||
- Rscript -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
- Rscript -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
||||||
@ -98,14 +95,13 @@ R-devel:
|
|||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
stage: test
|
stage: test
|
||||||
image: debian:buster-slim
|
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
when: on_success
|
when: on_success
|
||||||
only:
|
only:
|
||||||
- premaster
|
- premaster
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
- apt-get install --yes git r-base
|
- apt-get install --yes git
|
||||||
# install missing and outdated packages
|
# install missing and outdated packages
|
||||||
- Rscript -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
- Rscript -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
||||||
# codecov token is set in https://gitlab.com/msberends/AMR/settings/ci_cd
|
# codecov token is set in https://gitlab.com/msberends/AMR/settings/ci_cd
|
||||||
@ -114,12 +110,10 @@ coverage:
|
|||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: debian:buster-slim
|
|
||||||
when: always
|
when: always
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
- apt-get install --yes r-base
|
|
||||||
# install missing and outdated packages
|
# install missing and outdated packages
|
||||||
- Rscript -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
- Rscript -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
||||||
- Rscript -e "devtools::install(build = TRUE, upgrade = FALSE)"
|
- Rscript -e "devtools::install(build = TRUE, upgrade = FALSE)"
|
||||||
|
Loading…
Reference in New Issue
Block a user