.gitlab-ci.yml 858 Bytes
Newer Older
Tom Reynkens's avatar
Tom Reynkens committed
1 2 3
variables:
  _R_CHECK_CRAN_INCOMING_: "false"
  _R_CHECK_FORCE_SUGGESTS_: "true"
4
  APT_PKGS: "libxml2-dev libcurl4-openssl-dev libssl-dev zlib1g-dev git qpdf"
Tom Reynkens's avatar
Tom Reynkens committed
5 6 7 8

before_script:
  - apt-get update
  - apt-get install -y --no-install-recommends ${APT_PKGS}
9
  - R -e 'install.packages(c("catdata", "glmnet", "mgcv", "RColorBrewer", "Rcpp", "RcppArmadillo", "speedglm", "testthat", "knitr", "bookdown", "roxygen2", "devtools"))'
Tom Reynkens's avatar
Tom Reynkens committed
10

11
r-release: 
Tom Reynkens's avatar
Tom Reynkens committed
12
   stage: test
13
   image: rocker/r-ver:latest  
Tom Reynkens's avatar
Tom Reynkens committed
14
   script:
Tom Reynkens's avatar
Tom Reynkens committed
15
    - R CMD build . --no-manual
16
    - R CMD check --as-cran --no-manual *tar.gz
Tom Reynkens's avatar
Tom Reynkens committed
17 18
    - R -e 'install.packages("covr")'
    - R -e 'covr::codecov(type = "tests", quiet = FALSE, line_exclusions = list("R/smurf.R"))'
Tom Reynkens's avatar
Tom Reynkens committed
19
    
20 21 22 23 24 25
r-devel: 
   stage: test
   image: rocker/r-ver:devel
   script:
    - R CMD build . --no-manual
    - R CMD check --as-cran --no-manual *tar.gz