Commit bcfe0048 authored by domingue's avatar domingue
Browse files

Updated testing settings

parent a3ae10a2
Pipeline #2233 failed with stages
in 1 second
image: rocker/tidyverse
image: rocker/tidyverse:3.5.1
stages:
- build
- test
- deploy
before_script:
- echo $(uname -a)
- export DEBIAN_FRONTEND=noninteractive; apt-get update && apt-get install -qy curl mesa-common-dev imagemagick libfreetype6-dev libmagick++-dev cargo xorg libx11-dev libglu1-mesa-dev libgit2-dev texlive-latex-base
test:
building:
stage: build
script:
- R -e 'install.packages(c("knitr", "rmarkdown", "assertthat", "covr", "roxygen2", "renv", "session", "docopt"), repos = "https://cloud.r-project.org", dependencies = TRUE)'
- R -e 'devtools::install_deps(dependencies = TRUE, quiet = TRUE)'
- R -e 'devtools::build()'
- R -e "remotes::install_deps(dependencies = TRUE)"
- R -e 'devtools::check()'
tags:
- docker
# after_success:
# - R -e 'covr::package_coverage(Sys.getenv("CI_PROJECT_DIR"),
# quiet = FALSE)'
\ No newline at end of file
# To have the coverage percentage appear as a gitlab badge follow these
# instructions:
# https://docs.gitlab.com/ee/user/project/pipelines/settings.html#test-coverage-parsing
# The coverage parsing string is
# Coverage: \d+\.\d+
testing:
stage: test
allow_failure: true
when: on_success
only:
- master
script:
- Rscript -e 'install.packages("DT")'
- Rscript -e 'covr::gitlab(quiet = FALSE)'
artifacts:
paths:
- public
# To produce a code coverage report as a GitLab page see
# https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/
pages:
stage: deploy
dependencies:
- testing
script:
- ls
artifacts:
paths:
- public
expire_in: 30 days
only:
- master
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