1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 19:26:12 +01:00

small fix in gitlab CI

This commit is contained in:
dr. M.S. (Matthijs) Berends 2018-10-31 12:57:24 +01:00
parent 9cd4ab928a
commit 84825b33b1

View File

@ -16,7 +16,6 @@ R 3:
stage: build stage: build
allow_failure: false allow_failure: false
script: script:
- Rscript -e "options()" # to check for variables to circumvent testthat::skip_on_cran
- apt-get update - apt-get update
# install dependencies for package # install dependencies for package
- apt-get install --yes --no-install-recommends libxml2-dev libssl-dev libcurl4-openssl-dev zlib1g-dev - apt-get install --yes --no-install-recommends libxml2-dev libssl-dev libcurl4-openssl-dev zlib1g-dev
@ -28,9 +27,10 @@ R 3:
- R CMD build . --no-build-vignettes --no-manual - R CMD build . --no-build-vignettes --no-manual
- PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1) - PKG_FILE_NAME=$(ls -1t *.tar.gz | head -n 1)
- R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual --as-cran - R CMD check "${PKG_FILE_NAME}" --no-build-vignettes --no-manual --as-cran
- Rscript -e "options()" # to check for variables to circumvent testthat::skip_on_cran
# code coverage # code coverage
- apt-get install --yes git - apt-get install --yes git
- Rscript -e 'cc <- covr::covr::package_coverage(); covr::codecov(coverage = cc, token = "50ffa0aa-fee0-4f8b-a11d-8c7edc6d32ca"); cat("Code coverage:", covr::percent_coverage(cc))' - Rscript -e 'cc <- covr::package_coverage(); covr::codecov(coverage = cc, token = "50ffa0aa-fee0-4f8b-a11d-8c7edc6d32ca"); cat("Code coverage:", covr::percent_coverage(cc))'
coverage: '/Code coverage: \d+\.\d+/' coverage: '/Code coverage: \d+\.\d+/'
artifacts: artifacts:
paths: paths: