-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
24 lines (24 loc) · 943 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
build_package:
image: registry.plmlab.math.cnrs.fr/docker-images/rocker-r-ver/r-rmd:latest
stage: build
script:
- apt update
- apt install -y build-essential libfontconfig1-dev libcurl4-gnutls-dev libxml2-dev libssl-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
- R -e 'install.packages(c("DiscreteWeibull", "seqinr", "roxygen2", "Rcpp", "RcppArmadillo", "rmarkdown", "pkgdown", "devtools", "testthat", "roxytest"))'
- R -e 'devtools::build()'
- R -e 'devtools::install_local()'
- R -e 'devtools::document()'
- R -e 'pkgdown::build_site(devel=TRUE, preview=FALSE)'
- R -e 'devtools::check(env_vars = c("_R_CHECK_SYSTEM_CLOCK_" = 0))'
artifacts:
paths:
- docs
pages:
image: registry.plmlab.math.cnrs.fr/docker-images/rocker-r-ver/r-rmd:latest
stage: deploy
script:
- mkdir public
- mv docs/* public
artifacts:
paths:
- public