Commit e6aa7d7e authored by Dorchies David's avatar Dorchies David
Browse files

ci: add cran check and tests

error_on = "error " because of #10
1 merge request!6Resolve "Read result simulation in sections from a binary result files"
Pipeline #33922 failed with stage
in 5 minutes and 16 seconds
Showing with 31 additions and 0 deletions
+31 -0
stages:
- check
variables:
R_CI: "$CI_PROJECT_DIR/ci"
R_LIBS_USER: "$R_CI/lib"
default:
tags: [docker]
image: rocker/verse:devel
cache:
paths:
- $R_CI
before_script:
- mkdir -p $R_LIBS_USER
- echo "R_LIBS='$R_LIBS_USER'" > .Renviron
- R -q -e 'remotes::install_deps(dependencies = TRUE)'
check:
stage: check
script:
- tlmgr update --self && tlmgr install ec epstopdf-pkg
- R -q -e 'remotes::update_packages("rcmdcheck")'
- R -q -e 'rcmdcheck::rcmdcheck(args = "--as-cran", error_on = "error")'
test_all:
stage: check
script:
- R -q -e 'devtools::test()'
Supports Markdown
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