Verified Commit 21d128da authored by Cody L Marquart's avatar Cody L Marquart
Browse files

Update test step for coverage badge

[skip check][skip rhub][skip winbuilder]
parent 5204b8a3
Pipeline #49596 passed with stages
in 2 minutes and 22 seconds
......@@ -152,7 +152,10 @@ test:r-release:
script:
- "sed -i -e \"s/Version: \\(.*\\)/Version: ${VERSION}/\" DESCRIPTION"
- 'Rscript -e "Rcpp::compileAttributes()"'
- 'Rscript -e "rep <- covr::report( x = covr::package_coverage(quiet = T), file = \"inst/coverage/${CI_COMMIT_REF_NAME}/index.html\" )"'
#- 'Rscript -e "rep <- covr::report( x = cov, file = \"inst/coverage/${CI_COMMIT_REF_NAME}/index.html\" )"'
- |
Rscript -e "cov <- covr::package_coverage(quiet = F);
rep <- covr::report( x = cov, file = \"inst/coverage/${CI_COMMIT_REF_NAME}/index.html\", browse = FALSE );"
- 'Rscript -e "setwd(\"inst/coverage/${CI_COMMIT_REF_NAME}\"); res = lapply(dir(\".\", full.names = F, recursive = T), function(f) { aws.s3::put_object(file = f, object = paste0(\"coverage/${CI_COMMIT_REF_NAME}/\", f), bucket = \"${PKGL}.qe-libs.org\", acl = \"public-read\") })"'
- 'Rscript --vanilla demo/backup/coverage-report.R ${CI_COMMIT_REF_NAME}'
dependencies:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment