Skip to content
Snippets Groups Projects
Commit ed50194d authored by Juliette Engelaere-Lefebvre's avatar Juliette Engelaere-Lefebvre
Browse files

CI7 : install {covr} et ajout stage pkgdown-move

parent e24f5e0f
No related branches found
No related tags found
No related merge requests found
Pipeline #59113 passed with warnings
......@@ -20,7 +20,7 @@ building:
script:
- mkdir -p -m777 $R_LIBS_USER
- Rscript -e '.libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths()));remotes::install_deps(dependencies = TRUE, upgrade = "never")'
- Rscript -e '.libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths()));remotes::install_cran(c("pkgdown", "qpdf"), upgrade = "never")'
- Rscript -e '.libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths()));remotes::install_cran(c("pkgdown", "qpdf", "covr"), upgrade = "never")'
- Rscript -e '.libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths()));devtools::check(cran=FALSE)'
# To have the coverage percentage appear as a gitlab badge follow these
......@@ -40,7 +40,8 @@ testing:
artifacts:
paths:
- public
expire_in: 30 days
expire_in: 30 days
integration:
stage: pkgdown
allow_failure: true
......@@ -53,6 +54,26 @@ integration:
paths:
- docs
expire_in: 30 days
integration-master:
stage: pkgdown-move
dependencies:
- integration
only:
- master
script:
- wget https://gitlab.com/rdes_dreal/propre.rpls/-/jobs/artifacts/master/download?job=pages
- unzip -o download?job=pages
- rm download?job=pages
- mkdir -p public
- cp -r docs/* public
artifacts:
paths:
- public
expire_in: 30 days
# To produce a code coverage report as a GitLab page see
# https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment