Verified Commit 96f127cf authored by Cody L Marquart's avatar Cody L Marquart
Browse files

Auto replace Version in DESCRIPTION in CI

parent a2634557
Pipeline #49499 passed with stages
in 8 minutes and 12 seconds
......@@ -24,6 +24,8 @@ variables:
- export _R_CHECK_CRAN_INCOMING_=FALSE
- export _R_CHECK_FORCE_SUGGESTS_=TRUE
- mkdir -p archive/
- "sed -i -e \"s/Version: \\(.*\\)/Version: ${VERSION}/\" DESCRIPTION"
- cat DESCRIPTION
- Rscript -e 'update(devtools::dev_package_deps("."))'
- Rscript -e 'install.packages("knitr")'
- Rscript -e 'install.packages("rmarkdown")'
......@@ -42,7 +44,7 @@ variables:
script:
- R --no-site-file --no-environ --no-save --no-restore --quiet CMD check ${PKG}_${VERSION}.tar.gz --as-cran --no-manual
- ls -al ./
- ls -al ./$PKG.Rcheck/
- ls -al ./$PKG.Rcheck/ || true
- mv ./$PKG-00build.log $PKG/archive/ || true
- mv ./$PKG.Rcheck/00check.log $PKG/archive/ || true
- mv ./$PKG.Rcheck/00install.out $PKG/archive/ || true
......@@ -113,6 +115,7 @@ test:r-release:
stage: test
image: $REG_URL/release-test:current
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 "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\") })"'
......@@ -126,6 +129,7 @@ docs:build-site:
script:
- rm -rf src/RcppExports*
- rm -rf R/RcppExports*
- "sed -i -e \"s/Version: \\(.*\\)/Version: ${VERSION}/\" DESCRIPTION"
- 'Rscript -e "Rcpp::compileAttributes()"'
- 'Rscript -e "install.packages(\"fs\")"'
- 'Rscript -e "install.packages(\"pkgdown\")"'
......
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