mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 20:06:11 +01:00
gitlab pkg cache
This commit is contained in:
parent
b48e609afe
commit
9da3fcfb7a
@ -31,7 +31,7 @@ gl_update_pkg_all <- function(repos = "https://cran.rstudio.com",
|
|||||||
update.packages(ask = FALSE, repos = repos, quiet = quiet)
|
update.packages(ask = FALSE, repos = repos, quiet = quiet)
|
||||||
|
|
||||||
install_if_needed(pkg = "devtools", repos = repos, quiet = quiet)
|
install_if_needed(pkg = "devtools", repos = repos, quiet = quiet)
|
||||||
if (install_pkgdown = TRUE) {
|
if (install_pkgdown == TRUE) {
|
||||||
install_if_needed(pkg = "pkgdown", repos = repos, quiet = quiet)
|
install_if_needed(pkg = "pkgdown", repos = repos, quiet = quiet)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ stages:
|
|||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
image: debian:stretch-slim
|
# stretch only contains R 3.3
|
||||||
|
image: debian:buster-slim
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
@ -40,7 +41,7 @@ before_script:
|
|||||||
- echo 'R_LIBS="installed_deps"' > .Renviron
|
- echo 'R_LIBS="installed_deps"' > .Renviron
|
||||||
- echo 'R_LIBS_USER="installed_deps"' >> .Renviron
|
- echo 'R_LIBS_USER="installed_deps"' >> .Renviron
|
||||||
- echo 'R_LIBS_SITE="installed_deps"' >> .Renviron
|
- echo 'R_LIBS_SITE="installed_deps"' >> .Renviron
|
||||||
- Rscript -e '.libPaths()'
|
#- Rscript -e '.libPaths()'
|
||||||
# install missing and outdated packages
|
# install missing and outdated packages
|
||||||
- Rscript -e 'source(".gitlab-ci.R")'
|
- Rscript -e 'source(".gitlab-ci.R")'
|
||||||
- Rscript -e 'gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
- Rscript -e 'gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'
|
||||||
|
Loading…
Reference in New Issue
Block a user