.gitlab-ci.yml 1.54 KB
Newer Older
1 2 3 4 5
variables:
  _R_CHECK_CRAN_INCOMING_: "false"
  _R_CHECK_FORCE_SUGGESTS_: "true"
  APT_PKGS: "libcurl4-openssl-dev libssh2-1-dev libssl-dev libxml2-dev zlib1g-dev git"

6 7
before_script:
  - apt-get update
8
  - apt-get install -y pkg-config
9
  - apt-get install -y --no-install-recommends ${APT_PKGS}
10 11
  - apt-get install -y --no-install-recommends qpdf pandoc pandoc-citeproc

12 13 14
build_markdown_v1: # to test R Markdown v1 without pandoc, must install knitr and rmarkdown
  image: jangorecki/r-base-dev
  script:
15
    - R -e 'install.packages(c("curl", "jsonlite", "data.table", "tinytest", "knitr", "rmarkdown"))'
16 17 18
    - R CMD build .
    - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
    - R CMD check "${PKG_FILE_NAME}" --no-manual --as-cran
Sébastien Galais's avatar
Sébastien Galais committed
19

20 21
build_cran:
  image: jangorecki/r-pkg
22
  script:
23
    - R -e 'install.packages(c("curl", "jsonlite", "data.table", "tinytest"))'
24 25 26 27 28 29
    - R CMD build .
    - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
    - R CMD check "${PKG_FILE_NAME}" --no-manual --as-cran

build_version_latest:
  image: rocker/r-ver:latest
30
  script:
31
    - R -e 'install.packages(c("curl", "jsonlite", "data.table", "tinytest", "knitr", "rmarkdown"))'
32 33 34 35 36 37
    - R CMD build .
    - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
    - R CMD check "${PKG_FILE_NAME}" --no-manual --as-cran

build_version_devel:
  image: rocker/r-ver:devel
Sébastien Galais's avatar
Sébastien Galais committed
38
  script:
39
    - R -e 'install.packages(c("curl", "jsonlite", "data.table", "tinytest", "knitr", "rmarkdown"))'
40 41 42
    - R CMD build .
    - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
    - R CMD check "${PKG_FILE_NAME}" --no-manual --as-cran