AMR/.gitlab-ci.yml

12 lines
607 B
YAML
Raw Normal View History

2018-10-23 14:59:36 +02:00
# from https://stackoverflow.com/questions/51866926
2018-10-23 19:49:31 +02:00
# and https://github.com/jangorecki/r.gitlab.ci
2018-10-23 14:59:36 +02:00
image: rocker/r-base
2018-10-23 16:49:40 +02:00
gitlab:
2018-10-23 14:59:36 +02:00
script:
2018-10-23 21:17:05 +02:00
- atp-get update
2018-10-23 20:38:18 +02:00
- apt-get install --yes libssl-dev libcurl4-openssl-dev libxml2-dev
- R -e "install.packages(c('backports', 'curl', 'crayon', 'data', 'dplyr', 'hms', 'knitr', 'rlang', 'rvest', 'tidyr', 'xml2', 'covr', 'ggplot2', 'rmarkdown', 'rstudioapi', 'testthat'))"
2018-10-23 14:53:42 +02:00
- R CMD build . --no-build-vignettes --no-manual
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
2018-10-23 19:49:31 +02:00
- R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual --as-cran