AMR/.gitlab-ci.yml

20 lines
1.1 KiB
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:37:49 +02:00
# - apt-get update
# - apt-get install --yes libssl1.0.0=1.0.2g-1ubuntu4.1
#- 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'))"
#- R CMD build . --no-build-vignettes --no-manual
#- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
#- R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual --as-cran
2018-10-23 21:26:57 +02:00
- apt-get update
2018-10-23 21:37:49 +02:00
- apt-get install --yes --no-install-recommends r-cran-testthat r-cran-devtools
- R -e 'devtools::install_deps(dependencies = c("Depends", "Imports", "Suggests"))'
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
2018-10-23 21:37:49 +02:00
- R -e "covr::codecov(token = '50ffa0aa-fee0-4f8b-a11d-8c7edc6d32ca')"