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

ci test r-devel

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-03-29 14:51:55 +01:00
parent 248e508e9b
commit ce68ff4ee7

View File

@ -60,7 +60,7 @@ R-release:
image: debian:buster-slim image: debian:buster-slim
allow_failure: false allow_failure: false
script: script:
- apt-get install r-base > /dev/null - 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)'
@ -78,7 +78,7 @@ R-release:
R-devel: R-devel:
stage: build stage: build
image: rocker:r-devel image: rocker/r-devel
allow_failure: true allow_failure: true
script: script:
- Rscript -e 'sessionInfo()' - Rscript -e 'sessionInfo()'
@ -100,16 +100,14 @@ coverage:
stage: test stage: test
image: debian:buster-slim image: debian:buster-slim
allow_failure: true allow_failure: true
script:
- apt-get install r-base > /dev/null
# 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)'
when: on_success when: on_success
only: only:
- premaster - premaster
- master - master
script: script:
- apt-get install --yes git - apt-get install --yes git r-base
# 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)'
# 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
- Rscript -e "cc <- covr::package_coverage(); covr::codecov(coverage = cc, token = '$codecov'); cat('Code coverage:', covr::percent_coverage(cc))" - Rscript -e "cc <- covr::package_coverage(); covr::codecov(coverage = cc, token = '$codecov'); cat('Code coverage:', covr::percent_coverage(cc))"
coverage: '/Code coverage: \d+\.\d+/' coverage: '/Code coverage: \d+\.\d+/'
@ -117,14 +115,13 @@ coverage:
pages: pages:
stage: deploy stage: deploy
image: debian:buster-slim image: debian:buster-slim
script:
- apt-get install r-base > /dev/null
# 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)'
when: always when: always
only: only:
- master - master
script: script:
- apt-get install --yes r-base
# 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 "devtools::install(build = TRUE, upgrade = FALSE)" - Rscript -e "devtools::install(build = TRUE, upgrade = FALSE)"
- R -e "pkgdown::build_site(examples = FALSE, lazy = TRUE, override = list(destination = 'public'))" - R -e "pkgdown::build_site(examples = FALSE, lazy = TRUE, override = list(destination = 'public'))"
artifacts: artifacts: