diff --git a/Dockerfile b/Dockerfile index d3a5cfa..e703fc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* \ && mkdir -p /var/lib/shiny-server/bookmarks/shiny -RUN install2.r ggplot2 jpeg png stringr gridExtra grid testthat +RUN install2.r ggplot2 jpeg png stringr gridExtra grid testthat covr diff --git a/Jenkinsfile b/Jenkinsfile index e38c48e..09df590 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,6 +39,13 @@ pipeline { ''' } } + stage('test coverage') { + steps { + sh ''' + R -e 'covr::package_coverage(".")' + ''' + } + } stage('Clean') { steps {