Skip to content
Snippets Groups Projects
Commit 1c2556ad authored by Arnaud Duvermy's avatar Arnaud Duvermy
Browse files

add CI yml file

parent 50f84fa0
No related branches found
No related tags found
No related merge requests found
variables:
_R_CHECK_CRAN_INCOMING_: "true"
_R_CHECK_FORCE_SUGGESTS_: "true"
APT_PKGS: "libcurl4-openssl-dev"
image: rocker/tidyverse
before_script:
- apt-get update
- apt-get install -y --no-install-recommends ${APT_PKGS}
- apt-get install -y --no-install-recommends qpdf pandoc pandoc-citeproc
- R -e 'install.packages(c("testthat", "rmarkdown"));'
# install all packages in description file not yet installed:
# (only works with CRAN packages like this)
- R -e 'install.packages(setdiff(desc::desc()$get_deps()$package, c(installed.packages(), "R")));'
- git submodule init && git submodule update
devtools-check:
stage: build
script:
- R -e 'devtools::check()'
pages:
stage: build
script:
- R -e "devtools::document(); pkgdown::build_site()"
artifacts:
paths:
- public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment