Commit 499f5387 authored by Pradat Yoann's avatar Pradat Yoann
Browse files

[CI] merge all stages

parent 2f937558
stages: stages:
- dependencies
- build
- document
- check - check
- test
- install
default: default:
tags: tags:
...@@ -22,50 +17,17 @@ cache: ...@@ -22,50 +17,17 @@ cache:
- ${RENV_PATHS_CACHE} - ${RENV_PATHS_CACHE}
- ${RENV_PATHS_LIBRARY} - ${RENV_PATHS_LIBRARY}
before_script: check:
- Rscript -e "cat(paste('path renv root:', renv::paths\$root()))" stage: check
- echo ${CI_PROJECT_DIR}
install_dependencies:
stage: dependencies
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached
script: script:
- Rscript -e 'cat(paste("path renv root:", renv::paths\$root()), "\\n")'
- Rscript -e 'if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")' - Rscript -e 'if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")'
- Rscript -e 'renv::restore()' - Rscript -e 'renv::restore()'
- Rscript -e 'if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")' - Rscript -e 'if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")'
- Rscript -e 'devtools::build(binary=T)'
buildbinary: - Rscript -e 'devtools::document()'
stage: build - Rscript -e 'if (!identical(devtools::check(document = FALSE, args = "--no-tests")[["errors"]], character(0))) stop("Check with Errors")'
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached - Rscript -e 'if (any(as.data.frame(devtools::test())[["failed"]] > 0)) stop("Some tests failed.")'
script: - Rscript -e 'covr::codecov()'
- R -e 'devtools::build(binary=T)' - Rscript -e 'devtools::install()'
documentation:
stage: document
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached
script:
- R -e 'devtools::document()'
checkerrors:
stage: check
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached
script:
- R -e 'if (!identical(devtools::check(document = FALSE, args = "--no-tests")[["errors"]], character(0))) stop("Check with Errors")'
unittests:
stage: test
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached
script:
- R -e 'if (any(as.data.frame(devtools::test())[["failed"]] > 0)) stop("Some tests failed.")'
codecov:
stage: test
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached
script:
- R -e 'covr::codecov()'
install:
stage: install
image: gitlab-research.centralesupelec.fr:4567/2019pradaty/rcached
script:
- R -e 'devtools::install()'
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