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

gitlab ci

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-01-04 12:13:02 +01:00
parent eab3c9dac8
commit b92c392dd4
2 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@
^git_merge\.sh$ ^git_merge\.sh$
^git_premaster\.sh$ ^git_premaster\.sh$
^index\.md$ ^index\.md$
^installed_deps$
^Meta$ ^Meta$
^packrat/ ^packrat/
^pkgdown$ ^pkgdown$

View File

@ -35,15 +35,15 @@ before_script:
- apt-get update - apt-get update
# install dependencies for package # install dependencies for package
- apt-get -y install libxml2-dev libssl-dev libcurl4-openssl-dev zlib1g-dev pandoc r-base - apt-get -y install libxml2-dev libssl-dev libcurl4-openssl-dev zlib1g-dev pandoc r-base
- mkdir installed_deps
- Rscript -e '.libPaths <- c("installed_deps", .libPatgs())'
- Rscript -e 'install.packages(c("devtools", "rlang"), repos = "https://cran.rstudio.com")' - Rscript -e 'install.packages(c("devtools", "rlang"), repos = "https://cran.rstudio.com")'
- Rscript -e 'devtools::install_dev_deps(repos = "https://cran.rstudio.com")' - Rscript -e 'devtools::install_dev_deps(repos = "https://cran.rstudio.com")'
cache: cache:
key: "$CI_COMMIT_REF_SLUG" key: "$CI_COMMIT_REF_SLUG"
paths: paths:
- /usr/local/lib/R/site-library/ - installed_deps/
- /usr/lib/R/site-library/
- /usr/lib/R/library/
R 3: R 3:
stage: build stage: build