mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 17:26:12 +01:00
ci update
This commit is contained in:
parent
13f85ac80f
commit
e76114f394
@ -49,11 +49,6 @@ before_script:
|
|||||||
- echo 'LANG="en_US.utf8"' >> .Renviron
|
- echo 'LANG="en_US.utf8"' >> .Renviron
|
||||||
- echo 'LANGUAGE="en_US.utf8"' > ~/.Renviron
|
- echo 'LANGUAGE="en_US.utf8"' > ~/.Renviron
|
||||||
|
|
||||||
cache:
|
|
||||||
key: "$CI_COMMIT_REF_SLUG"
|
|
||||||
paths:
|
|
||||||
- installed_deps/
|
|
||||||
|
|
||||||
R-release:
|
R-release:
|
||||||
stage: build
|
stage: build
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
@ -73,12 +68,21 @@ R-release:
|
|||||||
paths:
|
paths:
|
||||||
- '*.Rcheck/*'
|
- '*.Rcheck/*'
|
||||||
expire_in: '1 month'
|
expire_in: '1 month'
|
||||||
|
cache:
|
||||||
|
key: "$CI_COMMIT_REF_SLUG"
|
||||||
|
paths:
|
||||||
|
- installed_deps/
|
||||||
|
|
||||||
R-devel:
|
R-devel:
|
||||||
stage: build
|
stage: build
|
||||||
image: rocker/r-devel
|
image: rocker/r-devel
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
|
# set language
|
||||||
|
- echo 'LANGUAGE="en_US.utf8"' > .Renviron
|
||||||
|
- echo 'LANG="en_US.utf8"' >> .Renviron
|
||||||
|
- echo 'LANGUAGE="en_US.utf8"' > ~/.Renviron
|
||||||
|
- rm -rf installed_deps
|
||||||
- Rscriptdevel -e 'sessionInfo()'
|
- Rscriptdevel -e 'sessionInfo()'
|
||||||
# install missing and outdated packages
|
# install missing and outdated packages
|
||||||
- Rscriptdevel -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
- Rscriptdevel -e 'source(".gitlab-ci.R"); gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
||||||
@ -103,11 +107,11 @@ coverage:
|
|||||||
- premaster
|
- premaster
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
- apt-get install --yes git
|
- 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
|
||||||
- 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+/'
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
Loading…
Reference in New Issue
Block a user