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

retry CI coverage

parent 901796e2
No related branches found
No related tags found
No related merge requests found
...@@ -35,11 +35,8 @@ unit_test_coverage: ...@@ -35,11 +35,8 @@ unit_test_coverage:
script: script:
- Rscript -e 'install.packages("covr")' - Rscript -e 'install.packages("covr")'
- Rscript -e 'install.packages("DT")' - Rscript -e 'install.packages("DT")'
- Rscript -e "cov <- covr::package_coverage(quiet = TRUE); covr::to_cobertura(cov, file='coverage.xml')" - Rscript -e 'covr::gitlab(quiet = FALSE)'
# badge creation coverage: '/HTRfit Coverage: \d+(?:\.d+)?/' # regex to extract coverage percentage
- Rscript -e "badgecretr::badge_coverage_file('badge.svg', './coverage.xml', successful_coverage=90)"
artifacts: artifacts:
paths: paths:
- coverage.xml - public/
- 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.
Finish editing this message first!
Please register or to comment