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

retry coverage parsing

parent f4d91c4b
Branches
Tags
No related merge requests found
......@@ -26,7 +26,7 @@ pages:
- public/
coverage:
unit_test_coverage:
stage: test
allow_failure: true
when: on_success
......@@ -35,8 +35,11 @@ coverage:
script:
- Rscript -e 'install.packages("covr")'
- Rscript -e 'install.packages("DT")'
- Rscript -e 'covr::gitlab(quiet = FALSE)'
#- Rscript -e 'covr::codecov(type = c("tests", "examples"), quiet = FALSE)'
- Rscript -e "cov <- covr::package_coverage(quiet = TRUE); covr::to_cobertura(cov, file='coverage.xml')"
# badge creation
- Rscript -e "badgecretr::badge_coverage_file('badge.svg', './coverage.xml', successful_coverage=90)"
artifacts:
paths:
- public
paths:
- coverage.xml
- badge.svg
coverage: '/^.*?(?P<coverage>\d+(?:\.\d+)?).*$/' # regex to extract coverage percentage
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment