1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-27 12:06:14 +01:00
This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-01-05 14:53:56 +01:00
parent e8e27a580e
commit 29fc106d59

View File

@ -33,9 +33,9 @@ stages:
image: debian:buster-slim image: debian:buster-slim
before_script: before_script:
- apt-get update - apt-get -q update
# install dependencies for packages # install dependencies for packages
- apt-get -y install libxml2-dev libssl-dev libcurl4-openssl-dev zlib1g-dev pandoc r-base - apt-get -y -q install libxml2-dev libssl-dev libcurl4-openssl-dev zlib1g-dev pandoc r-base
# cache R packages # cache R packages
- mkdir -p installed_deps - mkdir -p installed_deps
- echo 'R_LIBS="installed_deps"' > .Renviron - echo 'R_LIBS="installed_deps"' > .Renviron
@ -57,8 +57,8 @@ R 3:
allow_failure: true allow_failure: true
script: script:
# remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file # remove vignettes folder and get VignetteBuilder field out of DESCRIPTION file
#- rm -rf vignettes - rm -rf vignettes
#- Rscript -e 'd <- read.dcf("DESCRIPTION"); d[, colnames(d) == "VignetteBuilder"] <- NA; write.dcf(d, "DESCRIPTION")' - Rscript -e 'd <- read.dcf("DESCRIPTION"); d[, colnames(d) == "VignetteBuilder"] <- NA; write.dcf(d, "DESCRIPTION")'
# build package # build package
- R CMD build . --no-build-vignettes --no-manual - R CMD build . --no-build-vignettes --no-manual
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1) - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)